Skip to content

Commit

Permalink
Fixing resolving apt repos :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurii Smetanka committed Oct 19, 2024
1 parent aff5715 commit 02f9d4f
Show file tree
Hide file tree
Showing 2 changed files with 24 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
24 changes: 23 additions & 1 deletion builder/bpim4.json.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ build {
name = "Banana Pi M4 Zero Pwnagotchi"
sources = ["source.arm-image.bpim4-pwnagotchi"]

provisioner "shell" {
inline = [
"echo '>>>-----> SET GOOGLE DNS <-----<<<'",
"echo 'Acquire::http::Proxy \"http://8.8.8.8\";' | tee /etc/apt/apt.conf.d/99dns"
]
}

provisioner "file" {
destination = "/usr/bin/"
sources = [
Expand All @@ -42,6 +49,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 +80,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 --no-install-recommends ansible"
]
}
// 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 02f9d4f

Please sign in to comment.