mirror of
https://github.com/splunk/security_content
synced 2026-06-08 17:32:49 +00:00
28 lines
1005 B
YAML
28 lines
1005 B
YAML
stages:
|
|
- publish_build_to_pre_qa
|
|
|
|
publish_build_to_pre_qa:
|
|
stage: publish_build_to_pre_qa
|
|
artifacts:
|
|
when: always
|
|
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 "Build Version - $VERSION"
|
|
- python security_content_automation/publish_build_to_pre_qa/publish_build_to_pre_qa.py --version $VERSION --builds DA-ESS-ContentUpdate SSA_Content
|
|
after_script:
|
|
- cp publish_build_to_pre_qa.log artifacts/publish_build_to_pre_qa.log
|
|
rules:
|
|
- if: '$CI_COMMIT_TAG =~ /^v[0-9]+\.[0-9]+\.[0-9]$/'
|
|
when: always
|
|
- if: '$CI_PIPELINE_SOURCE == "schedule"'
|
|
when: always
|