Skip to content

Commit

Permalink
Merge pull request #214 from Axway/APIGOV-27843
Browse files Browse the repository at this point in the history
APIGOV-27843 - changes for pre-release tagging
  • Loading branch information
dfeldick authored May 8, 2024
2 parents 37fdec8 + 936187c commit f942351
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ twistlock-discovery:on-schedule:
rules:
- !reference [.mirror-schedule-csr-rules, rules]
dependencies: []
variables:
# need to override this variable for github agents because the tag will need the 'v' if it exists
NO_V_RELEASE_TAG_REGEX: "^v?[0-9]{1,}\\.[0-9]{1,}\\.[0-9]{1,}$"
before_script:
- !reference [.get-last-tag, script]
- !reference [.get-agent-last-tag, script]
- echo "Using the last tagged version ${LAST_TAG_VERSION}"
- export IMAGE_NAME=ghcr.io/axway/apigee_discovery_agent:${LAST_TAG_VERSION}
- docker pull ${IMAGE_NAME}
Expand All @@ -85,8 +88,11 @@ twistlock-traceability:on-schedule:
rules:
- !reference [.mirror-schedule-csr-rules, rules]
dependencies: []
variables:
# need to override this variable for github agents because the tag will need the 'v' if it exists
NO_V_RELEASE_TAG_REGEX: "^v?[0-9]{1,}\\.[0-9]{1,}\\.[0-9]{1,}$"
before_script:
- !reference [.get-last-tag, script]
- !reference [.get-agent-last-tag, script]
- echo "Using the last tagged version ${LAST_TAG_VERSION}"
- export IMAGE_NAME=ghcr.io/axway/apigee_traceability_agent:${LAST_TAG_VERSION}
- docker pull ${IMAGE_NAME}
Expand All @@ -108,7 +114,7 @@ blackduck:on-schedule:
rules:
- !reference [.mirror-schedule-csr-rules, rules]
before_script:
- !reference [.get-last-tag, script]
- !reference [.get-agent-last-tag, script]

run-csr:
rules:
Expand Down
7 changes: 7 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ get_sdk_version()
}

post_to_teams() {
# don't post if this is a pre-release tag
pat='[0-9]+\.[0-9]+\.[0-9]+-'
if [[ ${TAG} =~ $pat ]]; then
echo "This is an interim release... skipping the post to Teams"
return 0
fi

rel_date=$(date +'%m/%d/%Y')
JSON="{
\"@type\": \"MessageCard\",
Expand Down

0 comments on commit f942351

Please sign in to comment.