Skip to content

Commit

Permalink
fix: publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Nov 18, 2024
1 parent ffa1052 commit 46c7462
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ami-release-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- develop
- release/*
- sam/publish-gh-actions
paths:
- '.github/workflows/ami-release-nix.yml'
- 'common-nix.vars.pkr.hcl'
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/publish-nix-pgupgrade-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches:
- develop
- release/*
paths:
- '.github/workflows/publish-nix-pgupgrade-scripts.yml'
- sam/publish-gh-actions
#TODO PR remove prior to merge
pull_request:
branches:
- sam/publish-gh-actions
paths:
- '.github/workflows/publish-nix-pgupgrade-scripts.yml'
workflow_dispatch:
Expand Down Expand Up @@ -49,7 +56,7 @@ jobs:
- name: Grab release version
id: process_release_version
run: |
VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
VERSION=${{ inputs.postgresVersion }}
Expand Down Expand Up @@ -95,11 +102,13 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3


- uses: DeterminateSystems/nix-installer-action@main

- name: Grab release version
id: process_release_version
run: |
VERSION=$(sudo nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
VERSION=$(nix run nixpkgs#yq -- '.postgres_release["postgres'${{ matrix.postgres_version }}'"]' ansible/vars.yml)
VERSION=$(echo $PG_VERSION | tr -d '"') # Remove any surrounding quotes
if [[ "${{ inputs.postgresVersion }}" != "" ]]; then
VERSION=${{ inputs.postgresVersion }}
Expand Down
4 changes: 2 additions & 2 deletions ansible/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ postgres_major:

# Full version strings for each major version
postgres_release:
postgres15: "15.8.1.010"
postgres16: "16.3.1.016"
postgres15: "15.8.1.010-staging"
postgres16: "16.3.1.016-staging"

# Non Postgres Extensions
pgbouncer_release: "1.19.0"
Expand Down

0 comments on commit 46c7462

Please sign in to comment.