Skip to content

Commit

Permalink
gha WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
wuputah committed Sep 27, 2024
1 parent 558ea99 commit fc22550
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@ jobs:

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
Expand All @@ -44,5 +46,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=linux/amd64,linux/arm64
*.cache-to=type=gha,mode=max
*.cache-from=type=gha
postgres.tags=${{ env.POSTGRES_IMAGE }}
2 changes: 1 addition & 1 deletion docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ target "postgres" {
}

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

Expand Down

0 comments on commit fc22550

Please sign in to comment.