File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change 87
87
image :
88
88
needs : build
89
89
# only on main and dev branch
90
- if : startsWith(github.ref, 'refs/heads/main') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/sgratzl/flaskx'
90
+ if : startsWith(github.ref, 'refs/heads/main') || github.ref == 'refs/heads/dev'
91
91
runs-on : ubuntu-latest
92
92
steps :
93
93
- name : Check out code
@@ -108,14 +108,9 @@ jobs:
108
108
run : |
109
109
baseRef="${GITHUB_REF#*/}"
110
110
imageTag="${baseRef#*/}"
111
- case "${baseRef}" in
112
- main)
111
+ if [ "$imageTag" = "main" ] ; then
113
112
imageTag="latest"
114
- ;;
115
- *)
116
- imageTag="${baseRef//\//_}" # replace `/` with `_` in branch name
117
- ;;
118
- esac
113
+ fi
119
114
echo "::set-output name=tag::$imageTag"
120
115
echo "::set-output name=repo::ghcr.io/${{ github.repository }}"
121
116
- name : Push Dev Tag
You can’t perform that action at this time.
0 commit comments