Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelUmaN authored Dec 27, 2024
1 parent 890dfd0 commit 12f322f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ jobs:
- name: Set Docker Tag
id: docker-tag
run: |
if [ "${{ github.ref_type }}" == "tag" ]; then
echo "TAG=${{ github.ref_name }}" >> $GITHUB_ENV
if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
echo "TAG=${GITHUB_REF_NAME}" >> $GITHUB_ENV
else
echo "TAG=latest" >> $GITHUB_ENV
fi
- name: Log in to DockerHub
uses: docker/login-action@v2
Expand Down

0 comments on commit 12f322f

Please sign in to comment.