forked from splunk/security_content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
27 lines (26 loc) · 1005 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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