Skip to content

Commit

Permalink
run pipeline only in ci [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunkhunti-cds authored Apr 15, 2022
1 parent 5c316e2 commit a065729
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,16 @@ publish_build_to_pre_qa:
paths:
- artifacts/*
image: python:3.8-alpine
before_script:
- apk add --update --no-cache make curl bash git
- curl -L https://github.com/screwdriver-cd/gitversion/releases/download/v1.1.1/gitversion_linux_amd64 -o /usr/local/bin/gitversion && chmod +x /usr/local/bin/gitversion
- eval $(ssh-agent -s)
script:
- mkdir -p artifacts
- pip install requests
- VERSION=$(git tag --sort=-creatordate | head -n 1)
- echo $VERSION
- VERSION=v3.38.0
- echo "Build version: $VERSION"
# Upload ESS-ContentUpdate build to Pre-QA
- python publish_build_to_pre_qa.py --version $VERSION --builds DA-ESS-ContentUpdate

- python security_content_automation/publish_build_to_pre_qa/publish_build_to_pre_qa.py --version $VERSION --builds DA-ESS-ContentUpdate
# Upload SSA-Content build to Pre-QA
- python publish_build_to_pre_qa.py --version $VERSION --builds SSA_Content
- python security_content_automation/publish_build_to_pre_qa/publish_build_to_pre_qa.py --version $VERSION --builds SSA_Content
after_script:
- cp publish_build_to_pre_qa.log artifacts/publish_build_to_pre_qa.log
rules:
- if: '$CI_COMMIT_REF_NAME =~ /^v[0-9]+\.[0-9]+\.[0-9]$/'
when: always
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: always



only:
- tags

0 comments on commit a065729

Please sign in to comment.