Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Deploy to repository provided by Keboola Developer Portal
- docker pull quay.io/keboola/developer-portal-cli-v2:latest
- export REPOSITORY=`docker run --rm \
- -e KBC_DEVELOPERPORTAL_USERNAME \
- -e KBC_DEVELOPERPORTAL_PASSWORD \
- -e KBC_DEVELOPERPORTAL_URL \
- quay.io/keboola/developer-portal-cli-v2:latest ecr:get-repository \
- $KBC_DEVELOPERPORTAL_VENDOR $KBC_DEVELOPERPORTAL_APP`
- docker tag $KBC_APP_REPOSITORY:latest $REPOSITORY:$TRAVIS_TAG
- docker tag $KBC_APP_REPOSITORY:latest $REPOSITORY:latest
- eval $(docker run --rm \
- -e KBC_DEVELOPERPORTAL_USERNAME \
- -e KBC_DEVELOPERPORTAL_PASSWORD \
- -e KBC_DEVELOPERPORTAL_URL \
- quay.io/keboola/developer-portal-cli-v2:latest ecr:get-login \
- $KBC_DEVELOPERPORTAL_VENDOR $KBC_DEVELOPERPORTAL_APP)
- docker push $REPOSITORY:$TRAVIS_TAG
- docker push $REPOSITORY:latest
- # Deploy the application to KBC
- docker run --rm \
- -e KBC_DEVELOPERPORTAL_USERNAME \
- -e KBC_DEVELOPERPORTAL_PASSWORD \
- -e KBC_DEVELOPERPORTAL_URL \
- quay.io/keboola/developer-portal-cli-v2:latest update-app-repository \
- $KBC_DEVELOPERPORTAL_VENDOR $KBC_DEVELOPERPORTAL_APP $TRAVIS_TAG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement