From 597d3025abbeab44d3e1c0f2a39f9e94ef9b57e9 Mon Sep 17 00:00:00 2001 From: Yurii Smetanka Date: Sat, 19 Oct 2024 18:01:11 +0200 Subject: [PATCH] Use third party runner --- .github/workflows/publish.yml | 2 +- builder/bpim4.json.pkr.hcl | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index df65d219..4d662172 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,7 +6,7 @@ on: jobs: build: name: ${{ matrix.name }} - runs-on: ubuntu-latest + runs-on: buildjet-2vcpu-ubuntu-2204 strategy: matrix: include: diff --git a/builder/bpim4.json.pkr.hcl b/builder/bpim4.json.pkr.hcl index 4dbd47a3..e65f4a57 100644 --- a/builder/bpim4.json.pkr.hcl +++ b/builder/bpim4.json.pkr.hcl @@ -42,6 +42,11 @@ build { "data/64bit/usr/bin/pwnlib", ] } + provisioner "shell" { + inline = [ + "apt-get update -o Acquire::Retries=3 --allow-releaseinfo-change" + ] + } provisioner "shell" { inline = ["chmod +x /usr/bin/*"] } @@ -68,8 +73,18 @@ build { inline = ["chmod +x /etc/update-motd.d/*"] } provisioner "shell" { - inline = ["apt-get -y --allow-releaseinfo-change update", "apt-get -y dist-upgrade", "apt-get install -y --no-install-recommends ansible"] + inline = [ + "echo '>>>-----> APT UPDATE <-----<<<'", + "apt-get -y --allow-releaseinfo-change update", + "echo '==>-----> APT UPGRADE <-----<=='", + "#apt-get -y upgrade", + "echo '###======]> INSTALLING ANSIBLE <[=====###'", + "apt-get install -y ansible binfmt-support python3-venv" + ] } + // provisioner "shell" { + // inline = ["apt-get -y --allow-releaseinfo-change update", "apt-get -y dist-upgrade", "apt-get install -y --no-install-recommends ansible"] + // } provisioner "ansible-local" { command = "ANSIBLE_FORCE_COLOR=1 PYTHONUNBUFFERED=1 PWN_VERSION=${var.pwn_version} PWN_HOSTNAME=${var.pwn_hostname} ansible-playbook" extra_arguments = ["--extra-vars \"ansible_python_interpreter=/usr/bin/python3\""]