8000 Update dockerpublish.yml · cqkh42/javascript-exercises@4c33dae · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c33dae

Browse files
authored
Update dockerpublish.yml
1 parent 21e37dd commit 4c33dae

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/dockerpublish.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
env:
1717
# TODO: Change variable to your image's name.
1818
IMAGE_NAME: node-jasmine
19+
VERSION: latest
1920

2021
jobs:
2122
# Run tests.
@@ -60,15 +61,6 @@ jobs:
6061
# Change all uppercase to lowercase
6162
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
6263
63-
# Strip git ref prefix from version
64-
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
65-
66-
# Strip "v" prefix from tag name
67-
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
68-
69-
# Use Docker `latest` tag convention
70-
[ "$VERSION" == "master" ] && VERSION=latest
71-
7264
echo IMAGE_ID=$IMAGE_ID
7365
echo VERSION=$VERSION
7466

0 commit comments

Comments
 (0)
0