mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
updated dockerpush.yml
This commit is contained in:
8
.github/workflows/dockerpush.yml
vendored
8
.github/workflows/dockerpush.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user