We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9703a12 commit 4c89e51Copy full SHA for 4c89e51
.github/workflows/release.yml
@@ -75,7 +75,7 @@ jobs:
75
# Allows pushing to registry on localhost:5000
76
driver-opts: network=host
77
78
- - name: Setup push rights to Docker Hub
+ - name: Setup push rights to Docker registry
79
if: env.REGISTRY != 'localhost:5000'
80
run: |
81
docker login -u "${{ secrets.DOCKER_REGISTRY_USERNAME }}" -p "${{ secrets.DOCKER_REGISTRY_TOKEN }}" "${{ env.REGISTRY }}"
@@ -89,6 +89,10 @@ jobs:
89
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
90
TAGS="$TAGS,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:main"
91
fi
92
+ if [ "${{ startsWith(github.ref, 'refs/tags/') }}" = "true" ]; then
93
+ TAGS="$TAGS,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest"
94
+ fi
95
+
96
echo "TAGS=$TAGS"
97
echo "TAGS=$TAGS" >> $GITHUB_ENV
98
0 commit comments