Skip to content

Commit

Permalink
duplicate build for docker hub (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon authored Feb 9, 2024
1 parent d136ff4 commit ec1caf6
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 ec1caf6

Please sign in to comment.