Update docker-image.yml

This commit is contained in:
João Vitória Silva
2023-11-29 13:46:22 +00:00
committed by GitHub
parent 281bafd371
commit 59e938ea93

View File

@@ -33,10 +33,10 @@ jobs:
fi
docker build . --file Dockerfile --tag ${{ github.repository }}:$IMAGE_TAG
#run: docker build . --file Dockerfile --tag ${{ github.repository }}:latest
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.action == 'workflow_dispatch')
if: github.event_name == 'release' || github.event_name == 'workflow_dispatch'
- name: Push the Docker image to GHCR
if: success() && (github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.action == 'workflow_dispatch'))
if: success() && (github.event_name == 'release' || github.event_name == 'workflow_dispatch')
run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
IMAGE_NAME="ghcr.io/${{ github.repository }}"