Skip to content

Commit

Permalink
fix: only build docker once
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Oct 23, 2024
1 parent 922444c commit a6d8743
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
build-docker:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
registry: ['ghcr.io/b-urb/doclytics', '${{ secrets.DOCKERHUB_USERNAME }}/doclytics']
permissions:
packages: write
contents: read
Expand All @@ -63,13 +66,6 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/doclytics:${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
Expand All @@ -81,7 +77,7 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/b-urb/doclytics:${{ env.BRANCH_NAME }}
tags: ${{ matrix.registry }}:${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64
release:
runs-on: ubuntu-latest
Expand Down

0 comments on commit a6d8743

Please sign in to comment.