Skip to content

Commit b3796e2

Browse files
authored
Merge pull request #105 from scalefocus/bugfix/docker-tag-fix
Fix docker tag version
2 parents 222a027 + aaa50e6 commit b3796e2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build_to_publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
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
@@ -66,6 +67,11 @@ jobs:
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
@@ -75,6 +81,6 @@ jobs:
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

0 commit comments

Comments
 (0)