Skip to content

Commit 4877903

Browse files
committed
cleanup
1 parent add5d2b commit 4877903

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/qemu-image-build.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,19 @@ jobs:
6262
sudo chown runner /dev/kvm
6363
sudo chmod 666 /dev/kvm
6464
65-
- name: Install dependencies
66-
run: |
67-
sudo apt-get update
68-
sudo apt-get install -y qemu-efi-aarch64 cloud-image-utils qemu-system-arm qemu-utils
69-
cd && curl -L "https://releases.hashicorp.com/packer/1.7.8/packer_1.7.8_linux_$(dpkg --print-architecture).zip" -o packer.zip && unzip packer.zip && rm -f packer.zip && sudo mv packer /usr/local/bin/
65+
# - name: Install dependencies
66+
# run: |
67+
# sudo apt-get update
68+
# sudo apt-get install -y qemu-efi-aarch64 cloud-image-utils qemu-system-arm qemu-utils
69+
# cd && curl -L "https://releases.hashicorp.com/packer/1.7.8/packer_1.7.8_linux_$(dpkg --print-architecture).zip" -o packer.zip && unzip packer.zip && rm -f packer.zip && sudo mv packer /usr/local/bin/
7070

7171
- name: Set PostgreSQL version environment variable
7272
run: echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> $GITHUB_ENV
7373

7474
- name: Generate common-nix.vars.pkr.hcl
7575
run: |
76-
PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
76+
curl -L https://github.com/mikefarah/yq/releases/download/v4.45.1/yq_linux_arm64 -o yq && sudo mv yq /usr/local/bin
77+
PG_VERSION=$(yq '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
7778
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
7879
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
7980
echo 'postgres-major-version = "'$POSTGRES_MAJOR_VERSION'"' >> common-nix.vars.pkr.hcl
@@ -87,7 +88,6 @@ jobs:
8788
GIT_SHA=${{github.sha}}
8889
export PACKER_LOG=1
8990
packer build -var "git_sha=$(UPSTREAM_NIX_GIT_SHA)" -var-file="common-nix.vars.pkr.hcl" qemu-arm64-nix.pkr.hcl
90-
# packer build -var "git-head-version=${GIT_SHA}" -var "packer-execution-id=${GITHUB_RUN_ID}" -var-file="development-arm.vars.pkr.hcl" -var-file="common-nix.vars.pkr.hcl" -var "ansible_arguments=-e postgresql_major=${POSTGRES_MAJOR_VERSION}" amazon-arm64-nix.pkr.hcl
9191
9292
- name: Grab release version
9393
id: process_release_version
@@ -132,7 +132,6 @@ jobs:
132132
cache-from: type=gha,scope=${{ github.ref_name }}-qemu-${{ matrix.arch }}
133133
cache-to: type=gha,mode=max,scope=${{ github.ref_name }}-qemu-${{ matrix.arch }}
134134

135-
136135
# - name: Upload software manifest to s3 staging
137136
# run: |
138137
# cd ansible

0 commit comments

Comments
 (0)