@@ -62,28 +62,20 @@ 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/
70
-
71
65
- name : Set PostgreSQL version environment variable
72
66
run : echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> $GITHUB_ENV
73
67
74
68
- name : Generate common-nix.vars.pkr.hcl
75
69
run : |
76
- curl -L https://github.com/mikefarah/yq/releases/download/v4.45.1/yq_linux_arm64 -o yq
77
- chmod +x yq
70
+ curl -L https://github.com/mikefarah/yq/releases/download/v4.45.1/yq_linux_arm64 -o yq && chmod +x yq
78
71
PG_VERSION=$(./yq '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
79
72
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
80
73
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
81
74
echo 'postgres-major-version = "'$POSTGRES_MAJOR_VERSION'"' >> common-nix.vars.pkr.hcl
82
- # echo 'postgresql_major = "'$POSTGRES_MAJOR_VERSION'"' >> common-nix.vars.pkr.hcl
83
75
# Ensure there's a newline at the end of the file
84
76
echo "" >> common-nix.vars.pkr.hcl
85
77
86
-
78
+ # TODO (darora): not quite sure why I'm having to uninstall and re-install these deps, but the build fails w/o this
87
79
- name : Install dependencies
88
80
run : |
89
81
sudo apt-get update
95
87
make init
96
88
GIT_SHA=${{github.sha}}
97
89
export PACKER_LOG=1
98
- packer build -var "git_sha=$(UPSTREAM_NIX_GIT_SHA)" -var-file="common-nix.vars.pkr.hcl" qemu-arm64-nix.pkr.hcl
99
-
100
- - name : Install dependencies
101
- run : |
102
- ls -lh output-cloudimg/
90
+ packer build -var "git_sha=${GIT_SHA}" -var-file="common-nix.vars.pkr.hcl" qemu-arm64-nix.pkr.hcl
103
91
104
92
- name : Grab release version
105
93
id : process_release_version
0 commit comments