File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,20 @@ jobs:
39
39
username : ${{ secrets.DOCKER_HUB_USERNAME }}
40
40
password : ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
41
41
42
- - name : Compute release tag
42
+ - name : Get and Set Release Version
43
43
id : release_version
44
44
run : |
45
- if [[ "${GITHUB_REF#refs/heads/}" == "${GITHUB_REF}" ]]; then
46
- VERSION="${GITHUB_REF#refs/*/}"
45
+ if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
46
+ VERSION="${GITHUB_REF#refs/tags/v}"
47
+ elif [[ "$GITHUB_REF" == refs/tags/* ]]; then
48
+ VERSION="${GITHUB_REF#refs/tags/}"
49
+ elif [[ "$GITHUB_REF" == refs/heads/* ]]; then
50
+ VERSION="${GITHUB_REF#refs/heads/}"
47
51
else
48
52
VERSION="latest"
49
53
fi
50
- echo "RELEASE_VERSION=$VERSION" >> " $GITHUB_ENV"
51
- echo "release_version=$VERSION" >> " $GITHUB_OUTPUT"
54
+ echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
55
+ echo "release_version=$VERSION" >> $GITHUB_OUTPUT
52
56
53
57
- name : Build and push Jupyter Hub image
54
58
uses : docker/build-push-action@v6
Original file line number Diff line number Diff line change 34
34
- name : Get and Set Release Version
35
35
id : release_version
36
36
run : |
37
- if [[ "${GITHUB_REF#refs/heads/}" == "${GITHUB_REF}" ]]; then
38
- VERSION="${GITHUB_REF#refs/*/}"
37
+ if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
38
+ VERSION="${GITHUB_REF#refs/tags/v}"
39
+ elif [[ "$GITHUB_REF" == refs/tags/* ]]; then
40
+ VERSION="${GITHUB_REF#refs/tags/}"
41
+ elif [[ "$GITHUB_REF" == refs/heads/* ]]; then
42
+ VERSION="${GITHUB_REF#refs/heads/}"
39
43
else
40
44
VERSION="latest"
41
45
fi
You can’t perform that action at this time.
0 commit comments