1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: anticipated docker push issue

This commit is contained in:
Steven Tang 2021-12-02 23:03:38 +11:00
parent 485dfe2888
commit 9cbddaeedf

View File

@ -33,33 +33,29 @@ jobs:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker - name: Build and push
id: meta
uses: docker/metadata-action@v3
with:
images: |
n1try/wakapi
ghcr.io/${{ github.repository }}
- name: Build and push to Docker Hub
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
push: true push: true
tags: | tags: |
${{ env.GIT_TAG }} n1try/wakapi:latest
latest n1try/wakapi:${{ env.GIT_TAG }}
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ env.GIT_TAG }}
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=n1try/wakapi:buildcache cache-from: type=registry,ref=n1try/wakapi:buildcache
cache-to: type=registry,ref=n1try/wakapi:buildcache,mode=max 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 uses: docker/build-push-action@v2
with: with:
file: Dockerfile.alpine file: Dockerfile.alpine
push: true push: true
tags: | tags: |
${{ env.GIT_TAG }}-alpine n1try/wakapi:latest-alpine
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 platforms: linux/amd64,linux/arm64
cache-from: type=registry,ref=n1try/wakapi:buildcache-alpine cache-from: type=registry,ref=n1try/wakapi:buildcache-alpine
cache-to: type=registry,ref=n1try/wakapi:buildcache-alpine,mode=max cache-to: type=registry,ref=n1try/wakapi:buildcache-alpine,mode=max