This commit is contained in:
Abner Rizzi 2023-08-10 15:44:38 -03:00
parent 2e7af5d9c0
commit f5bbb36144
1 changed files with 3 additions and 3 deletions

View File

@ -29,13 +29,13 @@ jobs:
context: .
file: Dockerfile.base
push: true
tags: ghcr.io/${{ REPO_NAME }}:${{ github.sha }}
tags: ghcr.io/${REPO_NAME}:${{ github.sha }}
- name: Docker image metadata
id: image_meta
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ REPO_NAME }}
images: ghcr.io/${REPO_NAME}
flavor: latest=true
tags: |
type=sha
@ -48,7 +48,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push metadata to image
run: docker push ghcr.io/${{ REPO_NAME }}
run: docker push ghcr.io/${REPO_NAME}
- name: Push tags to image
run: docker push ${{ steps.image_meta.outputs.tags }}