Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
deploy.sh: use $TRAVIS_TAG as VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
darkowlzz committed May 15, 2019
1 parent d98c107 commit 8c2a769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ if [ "$1" = "tagged" ]; then
docker push "${IMAGE_NAME}:latest" && docker push "${IMAGE_NAME}:${TRAVIS_TAG}"

# Trigger a rhel container service build.
curl -X POST -k -H 'Content-Type: application/json' -i https://connect.redhat.com/api/v2/projects/$RH_PID/build --data '{"tag": "'"${IMAGE_TAG}"'"}'
curl -X POST -k -H 'Content-Type: application/json' -i https://connect.redhat.com/api/v2/projects/$RH_PID/build --data '{"tag": "'"${TRAVIS_TAG}"'"}'

# Create a PR to community-operator repo.
docker run --rm -ti \
-v $PWD:/go/src/github.com/storageos/cluster-operator \
-e GH_USER=$GH_USER \
-e GH_EMAIL=$GH_EMAIL \
-e GH_TOKEN=$API_TOKEN \
-e VERSION=$IMAGE_TAG \
-e VERSION=$TRAVIS_TAG \
-e TARGET_REPO="https://github.com/operator-framework/community-operators/" \
-e COMMUNITY_REPO_PATH="/go/src/github.com/operator-framework/community-operators/" \
-e COMMUNITY_PKG_PATH="upstream-community-operators/storageos/" \
Expand Down

0 comments on commit 8c2a769

Please sign in to comment.