Skip to content

Commit 277f761

Browse files
committed
.
1 parent bcf0e0e commit 277f761

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

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

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- name: Checkout Repo
2323
uses: actions/checkout@v3
24-
24+
2525
- uses: DeterminateSystems/nix-installer-action@main
2626

2727
- name: Set PostgreSQL versions - only builds pg15 atm
@@ -54,6 +54,11 @@ jobs:
5454
- name: Checkout Repo
5555
uses: actions/checkout@v3
5656

57+
- name: Get binaries
58+
run: |
59+
hash
60+
echo $PATH
61+
5762
- uses: DeterminateSystems/nix-installer-action@main
5863

5964
# TODO (darora): might need to temporarily disable this
@@ -66,11 +71,17 @@ jobs:
6671
exit 1
6772
fi
6873
74+
- name: Get binaries
75+
run: |
76+
hash
77+
echo $PATH
78+
6979
- name: Set PostgreSQL version environment variable
7080
run: echo "POSTGRES_MAJOR_VERSION=${{ matrix.postgres_version }}" >> $GITHUB_ENV
7181

7282
- name: Generate common-nix.vars.pkr.hcl
7383
run: |
84+
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
7485
PG_VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
7586
PG_VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
7687
echo 'postgres-version = "'$PG_VERSION'"' > common-nix.vars.pkr.hcl
@@ -79,10 +90,6 @@ jobs:
7990
# Ensure there's a newline at the end of the file
8091
echo "" >> common-nix.vars.pkr.hcl
8192
82-
- name: Get binaries
83-
run: |
84-
hash
85-
8693
- name: Build QEMU artifact
8794
run: |
8895
make init

0 commit comments

Comments
 (0)