Skip to content

Commit

Permalink
Use third party runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurii Smetanka committed Oct 19, 2024
1 parent aff5715 commit 597d302
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
build:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
runs-on: buildjet-2vcpu-ubuntu-2204
strategy:
matrix:
include:
Expand Down
17 changes: 16 additions & 1 deletion builder/bpim4.json.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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/*"]
}
Expand All @@ -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\""]
Expand Down

0 comments on commit 597d302

Please sign in to comment.