Skip to content

Commit 68fb487

Browse files
committed
chore: cleanup
1 parent 44f115d commit 68fb487

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

.github/workflows/nix-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- develop
77
- release/*
8-
- da/qemu*
8+
- da/merging*
99
pull_request:
1010
workflow_dispatch:
1111

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

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,28 +62,20 @@ 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/
70-
7165
- name: Set PostgreSQL version environment variable
7266
run: echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> $GITHUB_ENV
7367

7468
- name: Generate common-nix.vars.pkr.hcl
7569
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
7871
PG_VERSION=$(./yq '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
7972
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
8073
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
8174
echo 'postgres-major-version = "'$POSTGRES_MAJOR_VERSION'"' >> common-nix.vars.pkr.hcl
82-
# echo 'postgresql_major = "'$POSTGRES_MAJOR_VERSION'"' >> common-nix.vars.pkr.hcl
8375
# Ensure there's a newline at the end of the file
8476
echo "" >> common-nix.vars.pkr.hcl
8577
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
8779
- name: Install dependencies
8880
run: |
8981
sudo apt-get update
@@ -95,11 +87,7 @@ jobs:
9587
make init
9688
GIT_SHA=${{github.sha}}
9789
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
10391
10492
- name: Grab release version
10593
id: process_release_version

0 commit comments

Comments
 (0)