From 28fe15131c8ee0b432dd1624fe88a1ab1712ae32 Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 9 Feb 2024 19:58:48 +0800 Subject: [PATCH] duplicate build for docker hub --- .github/workflows/publish.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3dedd2f..e447b9e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,7 +12,7 @@ on: - 'main' jobs: - docker-build: + docker-build-ghcr: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -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