This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 131
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 #3515 from nwmac/v2-master
Concourse pipeline updates
- Loading branch information
Showing
5 changed files
with
168 additions
and
10 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
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
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
platform: linux | ||
inputs: | ||
- name: stratos | ||
- name: image-tag | ||
image_resource: | ||
type: docker-image | ||
source: | ||
# Generated using scripts/Dockerfile.stratos-ci | ||
repository: splatform/stratos-ci-concourse | ||
tag: "latest" | ||
|
||
run: | ||
path: sh | ||
args: | ||
- -exc | ||
- | | ||
# Check that the Github release DOES NOT exist | ||
ROOT_DIR=${PWD} | ||
VERSION=$(cat image-tag/v2-version) | ||
FULL_VERSION=$(cat image-tag/v2-alpha-tag) | ||
GIT_TAG=$(cat image-tag/v2-tag) | ||
STRATOS=${ROOT_DIR}/stratos | ||
source ${STRATOS}/deploy/ci/tasks/dev-releases/github-helper.sh | ||
# Check tagged release version is consistent with package.json version | ||
TAG_RELEASE_VERSION=$(echo ${FULL_VERSION} | cut -d"-" -f1) | ||
if [ "${TAG_RELEASE_VERSION}" != "${VERSION}" ]; then | ||
echo "Package.json version is not consistent with tag release version! ${TAG_RELEASE_VERSION} != ${VERSION}" | ||
exit 1 | ||
fi | ||
cd ${ROOT_DIR}/stratos | ||
# Check that the release exists | ||
set +e | ||
github-release info -t ${GIT_TAG} | ||
RETVAL=$? | ||
set -e | ||
if [ $RETVAL -eq 0 ]; then | ||
echo "Aborting... release already exists" | ||
exit 1 | ||
fi | ||
echo "Release does not exist.. OK" |
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
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