Fixed github packages build

This commit is contained in:
Dmitriy Shishkov 2021-07-04 14:16:46 +05:00
parent 3ca47d915e
commit bcc0de495c
No known key found for this signature in database
GPG Key ID: 14358F96FCDD8060
2 changed files with 5 additions and 8 deletions

View File

@ -13,12 +13,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
@ -44,9 +38,10 @@ jobs:
with:
context: .
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ghcr.io/${{ github.repository }}:${{ github.sha }},ghcr.io/${{ github.repository }}:latest

View File

@ -50,9 +50,11 @@ jobs:
with:
context: .
file: ./Dockerfile
builder: ${{ steps.buildx.outputs.name }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}