Skip to content

Commit

Permalink
Update docker.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-- committed Feb 7, 2025
1 parent 23ebb63 commit 0771c9d
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build Docker

permissions:
id-token: write
contents: write

on:
push:
tags: ["v*"]
Expand Down Expand Up @@ -34,6 +38,13 @@ jobs:
username: pgduckdb
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Containers
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GH_TOKEN }}

- name: Checkout pg_duckdb extension code
uses: actions/checkout@v4
with:
Expand All @@ -60,7 +71,7 @@ jobs:
- name: Attempt to pull previous image
run: |
docker pull pgduckdb/pgduckdb:${{ matrix.postgres }}-${{ steps.compute_platform.outputs.platform }}-${{ steps.compute_platform.outputs.branch_tag }}-latest || true
docker pull ghcr.io/duckdb/pg_duckdb:${{ matrix.postgres }}-${{ steps.compute_platform.outputs.platform }}-${{ steps.compute_platform.outputs.branch_tag }}-latest || true
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand All @@ -78,9 +89,11 @@ jobs:
set: |
*.platform=linux/${{ steps.compute_platform.outputs.platform }}
*.cache-to=type=gha,mode=max
*.cache-from=type=registry,ref=pgduckdb/pgduckdb:${{ matrix.postgres }}-${{ steps.compute_platform.outputs.platform }}-${{ steps.compute_platform.outputs.branch_tag }}-latest
*.cache-from=type=registry,ref=ghcr.io/duckdb/pg_duckdb:${{ matrix.postgres }}-${{ steps.compute_platform.outputs.platform }}-${{ steps.compute_platform.outputs.branch_tag }}-latest
*.cache-from=type=gha
postgres.tags=pgduckdb/pgduckdb:${{ matrix.postgres }}-${{ steps.compute_platform.outputs.platform }}-${{ github.sha }}
postgres.tags=pgduckdb/pgduckdb:${{ matrix.postgres }}-${{ steps.compute_platform.outputs.platform }}-${{ steps.compute_platform.outputs.branch_tag }}-latest
postgres.tags=ghcr.io/duckdb/pg_duckdb:${{ matrix.postgres }}-${{ steps.compute_platform.outputs.platform }}-${{ github.sha }}
postgres.tags=ghcr.io/duckdb/pg_duckdb:${{ matrix.postgres }}-${{ steps.compute_platform.outputs.platform }}-${{ steps.compute_platform.outputs.branch_tag }}-latest
docker_merge:
name: Merge Docker image for Postgres ${{ matrix.postgres }}
Expand Down

0 comments on commit 0771c9d

Please sign in to comment.