Skip to content

Commit

Permalink
Fix branch
Browse files Browse the repository at this point in the history
  • Loading branch information
michalchecinski authored Oct 31, 2023
1 parent 84d42bf commit 806a81a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-cli-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,9 @@ jobs:
########## Generate image tag and build Docker image ##########
- name: Generate Docker image tag
id: tag
env:
SDK_BRANCH: ${{ inputs.sdk_branch }}
run: |
IMAGE_TAG=$(echo "${SDK_BRANCH}" | sed "s#/#-#g") # slash safe branch name
REF=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}
IMAGE_TAG=$(echo "${REF}" | sed "s#/#-#g") # slash safe branch name
if [[ "${IMAGE_TAG}" == "master" ]]; then
IMAGE_TAG=dev
elif [[ ("${IMAGE_TAG}" == "rc") || ("${IMAGE_TAG}" == "hotfix-rc") ]]; then
Expand Down

0 comments on commit 806a81a

Please sign in to comment.