ci(github-action): pin erhardtconsulting/images action to 9fd594e #159
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Init-Postgres 17: Build Container Image / Pull Request" | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'init-postgres/pg17.Dockerfile' | |
| - 'init-postgres/root/**' | |
| - '.github/workflows/build-container.yml' | |
| - '.github/workflows/build-init-postgres-17-pr.yml' | |
| permissions: | |
| contents: read | |
| packages: write | |
| jobs: | |
| get-version: | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| postgresql: ${{ steps.postgresql_version.outputs.POSTGRESQL_VERSION }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 | |
| - name: Get PostgreSQL version | |
| id: postgresql_version | |
| run: | | |
| echo "POSTGRESQL_VERSION=$(./get-apt-version.sh http://apt.postgresql.org bookworm-pgdg postgresql-client-17 | sed -E 's/^([0-9]+\.[0-9]+).*$/\1/')" >> $GITHUB_OUTPUT | |
| call-build-workflow: | |
| name: Build | |
| needs: get-version | |
| uses: erhardtconsulting/images/.github/workflows/build-container.yml@d8add0608c4b94245e5ab848478dc99ce49ca625 # main | |
| with: | |
| image: "init-postgres" | |
| dockerfile: "pg17.Dockerfile" | |
| tag: ${{ needs.get-version.outputs.postgresql }} | |
| push: false | |
| push-docker: false | |
| push-quay: false | |
| use-swap: true | |
| secrets: inherit |