Skip to content

Commit

Permalink
Merge pull request #279 from muety/docker
Browse files Browse the repository at this point in the history
fix: anticipated docker push issue
  • Loading branch information
muety authored Dec 14, 2021
2 parents 28a3418 + 9cbddae commit 1c0477f
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,33 +33,29 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: |
n1try/wakapi
ghcr.io/${{ github.repository }}
- name: Build and push to Docker Hub
- name: Build and push
uses: docker/build-push-action@v2
with:
push: true
tags: |
${{ env.GIT_TAG }}
latest
n1try/wakapi:latest
n1try/wakapi:${{ env.GIT_TAG }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.GIT_TAG }}
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=n1try/wakapi:buildcache
cache-to: type=registry,ref=n1try/wakapi:buildcache,mode=max

- name: Build and push to Docker Hub (Alpine)
- name: Build and push (Alpine)
uses: docker/build-push-action@v2
with:
file: Dockerfile.alpine
push: true
tags: |
${{ env.GIT_TAG }}-alpine
latest-alpine
n1try/wakapi:latest-alpine
n1try/wakapi:${{ env.GIT_TAG }}-alpine
ghcr.io/${{ github.repository }}:latest-alpine
ghcr.io/${{ github.repository }}:${{ env.GIT_TAG }}-alpine
platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=n1try/wakapi:buildcache-alpine
cache-to: type=registry,ref=n1try/wakapi:buildcache-alpine,mode=max

0 comments on commit 1c0477f

Please sign in to comment.