Skip to content

Commit cf87390

Browse files
committed
ci: remove nix dependency for simple tools
yq and jq are now bundled on the runner image
1 parent ad35eac commit cf87390

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ jobs:
2626
- name: Checkout Repo
2727
uses: supabase/postgres/.github/actions/shared-checkout@HEAD
2828

29-
- uses: DeterminateSystems/nix-installer-action@main
30-
3129
- name: Set PostgreSQL versions - only builds pg17 atm
3230
id: set-versions
3331
run: |
34-
VERSIONS=$(nix run nixpkgs#yq -- '.postgres_major[1]' ansible/vars.yml | nix run nixpkgs#jq -- -R -s -c 'split("\n")[:-1]')
32+
VERSIONS=$(yq '.postgres_major[1]' ansible/vars.yml | jq -R -s -c 'split("\n")[:-1]')
3533
echo "postgres_versions=$VERSIONS" >> $GITHUB_OUTPUT
3634
3735
build:
@@ -55,7 +53,7 @@ jobs:
5553
- name: Run checks if triggered manually
5654
if: ${{ github.event_name == 'workflow_dispatch' }}
5755
run: |
58-
SUFFIX=$(sudo nix run nixpkgs#yq -- ".postgres_release[\"postgres${{ matrix.postgres_version }}\"]" ansible/vars.yml | sed -E 's/[0-9\.]+(.*)$/\1/')
56+
SUFFIX=$(yq ".postgres_release[\"postgres${{ matrix.postgres_version }}\"]" ansible/vars.yml | sed -E 's/[0-9\.]+(.*)$/\1/')
5957
if [[ -z $SUFFIX ]] ; then
6058
echo "Version must include non-numeric characters if built manually."
6159
exit 1
@@ -153,7 +151,7 @@ jobs:
153151
SLACK_COLOR: 'danger'
154152
SLACK_MESSAGE: 'Building Postgres QEMU artifact failed'
155153
SLACK_FOOTER: ''
156-
b
154+
157155
- name: Cleanup resources after build
158156
if: ${{ always() }}
159157
run: |

0 commit comments

Comments
 (0)