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