Skip to content

Commit

Permalink
duplicate build for docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Feb 9, 2024
1 parent 42c3285 commit 28fe151
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'main'

jobs:
docker-build:
docker-build-ghcr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -25,6 +25,22 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=target,annotation-index.org.opencontainers.image.description=See https://github.com/protomaps/go-pmtiles for more info.
docker-build-dockerhub:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/metadata-action@v5
id: meta
with:
images: protomaps/gi-pmtiles
- uses: docker/login-action@v3
with:
username: protomaps
Expand Down

0 comments on commit 28fe151

Please sign in to comment.