Skip to content

Commit

Permalink
Update publish-docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oklopfer authored Feb 22, 2024
1 parent 35398a6 commit 6acb0fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ jobs:
echo "DOCK_LABEL=${vertag}" >> $GITHUB_ENV
if [[ ${vertag} == "develop" ]]; then
echo "FLAVOR_LATEST=false" >> $GITHUB_ENV
echo "DATE_DOCK_LABEL=${vertag}-$(date +%Y%m%d)" >> $GITHUB_ENV
echo "HASH_DOCK_LABEL=${vertag}-${GITHUB_SHA:0:8}" >> $GITHUB_ENV
elif [[ ${vertag} == "master" ]]; then
echo "FLAVOR_LATEST=true" >> $GITHUB_ENV
echo "DATE_DOCK_LABEL=${vertag}-$(date +%Y%m%d)" >> $GITHUB_ENV
echo "HASH_DOCK_LABEL=${vertag}-${GITHUB_SHA:0:8}" >> $GITHUB_ENV
else
echo "FLAVOR_LATEST=true" >> $GITHUB_ENV
fi
Expand All @@ -145,7 +145,7 @@ jobs:
images: ${{ env.REGISTRY_IMAGE }}
tags: |
type=raw,value=${{ env.DOCK_LABEL }}
type=raw,value=${{ env.DATE_DOCK_LABEL }}
type=raw,value=${{ env.HASH_DOCK_LABEL }}
flavor: latest=${{ env.FLAVOR_LATEST }}

- name: Log into registry ${{ env.REGISTRY }}
Expand Down

0 comments on commit 6acb0fa

Please sign in to comment.