Skip to content

Commit

Permalink
gha WIP
Browse files Browse the repository at this point in the history
* needs login credentials to push somewhere
  • Loading branch information
wuputah committed Sep 27, 2024
1 parent 558ea99 commit 99b8660
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
23 changes: 15 additions & 8 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,26 @@ jobs:
strategy:
fail-fast: false
matrix:
postgres: ["16", "17"]
postgres: ['16', '17']
platform: ['linux/amd64', 'linux/arm64']

steps:
-
name: setup POSTGRES_IMAGE env
name: Checkout pg_duckdb extension code
uses: actions/checkout@v4
with:
submodules: 'recursive'
-
name: Set POSTGRES_IMAGE env
run: echo "POSTGRES_IMAGE=${{ format('wuputah/pg_duckdb:{0}-{1}', matrix.postgres, github.sha) }}" >> $GITHUB_ENV
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up Docker buildx
uses: docker/setup-buildx-action@v3
with:
platforms: linux/amd64,linux/arm64
platforms: ${{ matrix.platform }}
# -
# name: Login to DockerHub
# uses: docker/login-action@v3
Expand All @@ -44,5 +47,9 @@ jobs:
name: docker bake
uses: docker/bake-action@v5
with:
cache-from: type=gha
cache-to: type=gha,mode=max
targets: pg_duckdb_${{ matrix.postgres }}
set: |
*.platform=${{ matrix.platform }}
*.cache-to=type=gha,mode=max
*.cache-from=type=gha
postgres.tags=${{ env.POSTGRES_IMAGE }}
3 changes: 1 addition & 2 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ target "postgres" {
inherits = ["shared"]

contexts = {
// pg_duckdb = "target:pg_duckdb_${POSTGRES_VERSION}"
postgres_base = "docker-image://postgres:${POSTGRES_VERSION}-bookworm"
}

Expand All @@ -27,7 +26,7 @@ target "postgres" {
}

tags = [
"${REPO}:${POSTGRES_VERSION}",
"${REPO}:${POSTGRES_VERSION}-dev",
]
}

Expand Down

0 comments on commit 99b8660

Please sign in to comment.