updated dockerpush.yml

This commit is contained in:
marvzhang
2020-02-24 09:18:22 +08:00
parent ad744d25fa
commit 8322cf4bd5

View File

@@ -11,9 +11,6 @@ on:
tags:
- v*
# Run tests for any PRs.
pull_request:
env:
IMAGE_NAME: tikazyq/crawlab
@@ -56,7 +53,10 @@ jobs:
run: |
# Strip git ref prefix from version
VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
[[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
if [ $VERSION == "release"]; then
apt-get install -y curl
curl ${{ secrets.JENKINS_RELEASE_URL }}