Skip to content

Commit 8322cf4

Browse files
committed
updated dockerpush.yml
1 parent ad744d2 commit 8322cf4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/dockerpush.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ on:
1111
tags:
1212
- v*
1313

14-
# Run tests for any PRs.
15-
pull_request:
16-
1714
env:
1815
IMAGE_NAME: tikazyq/crawlab
1916

@@ -56,7 +53,10 @@ jobs:
5653
run: |
5754
# Strip git ref prefix from version
5855
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
59-
56+
57+
# Strip "v" prefix from tag name
58+
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
59+
6060
if [ $VERSION == "release"]; then
6161
apt-get install -y curl
6262
curl ${{ secrets.JENKINS_RELEASE_URL }}

0 commit comments

Comments
 (0)