ci: publish independent eidx image #2
Workflow file for this run
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: 🍪 Bake Docker Image | |
| on: | |
| push: | |
| permissions: | |
| id-token: write | |
| contents: read | |
| packages: write | |
| jobs: | |
| bake: | |
| name: 🍪 Bake with Postgres ${{ matrix.pgv }} | |
| runs-on: ubuntu-latest | |
| if: ${{ github.repository == 'ClickHouse/pg_clickhouse' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| pgv: [18, 17, 16, 15, 14, 13] | |
| steps: | |
| - name: Checkout the Repository | |
| uses: actions/checkout@v6 | |
| with: { submodules: true } | |
| - name: Set up Depot CLI | |
| uses: depot/setup-action@v1 | |
| - name: Log in to GHCR | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set Bake Variables | |
| run: make bake-vars REGISTRY=ghcr.io/clickhouse PG_VERSIONS=${{ matrix.pgv }} >> $GITHUB_ENV | |
| - name: Build${{ startsWith(github.ref, 'refs/tags') && ' and Push' || '' }} | |
| uses: depot/bake-action@v1 | |
| with: | |
| project: vrpfjb99c5 | |
| platforms: linux/amd64,linux/arm64 | |
| pull: true | |
| push: ${{ startsWith(github.ref, 'refs/tags') }} |