@@ -62,18 +62,19 @@ jobs:
62
62
sudo chown runner /dev/kvm
63
63
sudo chmod 666 /dev/kvm
64
64
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/
70
70
71
71
- name : Set PostgreSQL version environment variable
72
72
run : echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> $GITHUB_ENV
73
73
74
74
- name : Generate common-nix.vars.pkr.hcl
75
75
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)
77
78
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
78
79
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
79
80
echo 'postgres-major-version = "'$POSTGRES_MAJOR_VERSION'"' >> common-nix.vars.pkr.hcl
87
88
GIT_SHA=${{github.sha}}
88
89
export PACKER_LOG=1
89
90
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
91
91
92
92
- name : Grab release version
93
93
id : process_release_version
@@ -132,7 +132,6 @@ jobs:
132
132
cache-from : type=gha,scope=${{ github.ref_name }}-qemu-${{ matrix.arch }}
133
133
cache-to : type=gha,mode=max,scope=${{ github.ref_name }}-qemu-${{ matrix.arch }}
134
134
135
-
136
135
# - name: Upload software manifest to s3 staging
137
136
# run: |
138
137
# cd ansible
0 commit comments