File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 5858 - name : Get version suffix
5959 run : |
6060 version_suffix_string=""
61+ delimiter=""
6162 branch_name="${GITHUB_REF##*/}"
6263
6364 if [ "$branch_name" = "develop" ]; then
6667 version_suffix_string="beta"
6768 fi
6869
70+ if [ -n "$version_suffix_string" ]; then
71+ delimiter="-"
72+ fi
73+
74+ echo "DOCKER_TAG=${{ steps.gitversion.outputs.MajorMinorPatch }}${delimiter}${version_suffix_string}" >> "$GITHUB_ENV"
6975 echo "VERSION_SUFFIX=$version_suffix_string" >> "$GITHUB_ENV"
7076
7177 - name : Build docker image
7581 --no-cache \
7682 --build-arg VERSION="${{ steps.gitversion.outputs.MajorMinorPatch }}" \
7783 --build-arg VERSION_SUFFIX="${{ env.VERSION_SUFFIX }}" \
78- -t scalefocusad/photopixels-backend-net:"${{ steps.gitversion.outputs.MajorMinorPatch }}-${{ env.VERSION_SUFFIX }}" \
84+ -t scalefocusad/photopixels-backend-net:"${{ env.DOCKER_TAG }}" \
7985 -f ./src/SF.PhotoPixels.API/Dockerfile . \
8086 --push
You can’t perform that action at this time.
0 commit comments