-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add task to check whether kubo release and kubo-deployment version ma…
…tches (#60)
- Loading branch information
1 parent
0fde2b6
commit faf1dc3
Showing
3 changed files
with
30 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exu -o pipefail | ||
|
||
main() { | ||
kubo_release_version=$(cat kubo-release/version) | ||
kubo_deployment_version=$(cat kubo-deployment/version) | ||
if [ "$kubo_release_version" != "$kubo_deployment_version" ]; then | ||
echo "kubo-release version: $kubo_release_version doesn't match kubo-deployment version: $kubo_deployment_version" | ||
exit 1 | ||
fi | ||
} | ||
|
||
main @ |
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,13 @@ | ||
platform: linux | ||
image_resource: | ||
type: docker-image | ||
source: | ||
repository: pcfkubo/kubo-ci | ||
tag: stable | ||
run: | ||
path: git-kubo-ci/scripts/check-version-match.sh | ||
|
||
inputs: | ||
- name: git-kubo-ci | ||
- name: kubo-release | ||
- name: kubo-deployment |
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