-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from Axway/APIGOV-25848
APIGOV-25848
- Loading branch information
Showing
1 changed file
with
5 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,13 +38,6 @@ include: | |
file: | ||
- "/gitlabci/csrjobs.yml" | ||
|
||
.get-latest-tag: &get-latest-tag | | ||
if [ $(git --version | grep -Eo '2.*') ]; then | ||
export LAST_TAG_VERSION=$(git tag -l --sort="version:refname" | grep -Eo '^v?[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,3}$' | tail -1) | ||
else | ||
export LAST_TAG_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1)) | ||
fi | ||
|
||
stages: | ||
- test | ||
- sonar-preview | ||
|
@@ -80,8 +73,8 @@ twistlock-discovery:on-schedule: | |
- !reference [.mirror-schedule-csr-rules, rules] | ||
dependencies: [] | ||
before_script: | ||
- apk --no-cache update && apk add git | ||
- *get-latest-tag | ||
- !reference [.get-last-tag, script] | ||
- echo "Using the last tagged version ${LAST_TAG_VERSION}" | ||
- export IMAGE_NAME=ghcr.io/axway/kong_discovery_agent:${LAST_TAG_VERSION} | ||
- docker pull ${IMAGE_NAME} | ||
|
||
|
@@ -91,21 +84,16 @@ twistlock-traceability:on-schedule: | |
- !reference [.mirror-schedule-csr-rules, rules] | ||
dependencies: [] | ||
before_script: | ||
- apk --no-cache update && apk add git | ||
- *get-latest-tag | ||
- !reference [.get-last-tag, script] | ||
- echo "Using the last tagged version ${LAST_TAG_VERSION}" | ||
- export IMAGE_NAME=ghcr.io/axway/kong_traceability_agent:${LAST_TAG_VERSION} | ||
- docker pull ${IMAGE_NAME} | ||
|
||
blackduck:on-schedule: | ||
rules: | ||
- !reference [.mirror-schedule-csr-rules, rules] | ||
before_script: | ||
- git config --global http.sslVerify false | ||
- git config --global url."ssh://[email protected]".insteadOf "https://git.ecd.axway.org"'' | ||
- git fetch | ||
- *get-latest-tag | ||
- echo "Checking out ${LAST_TAG_VERSION}" | ||
- git checkout ${LAST_TAG_VERSION} | ||
- !reference [.get-last-tag, script] | ||
|
||
# overridden from csrjobs.yml because mirror repos like this one don't get merge events | ||
fortify: | ||
|