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