Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. # Deploy to repository provided by Keboola Developer Portal
  2. docker pull quay.io/keboola/developer-portal-cli-v2:latest
  3. export REPOSITORY=`docker run --rm \
  4. -e KBC_DEVELOPERPORTAL_USERNAME \
  5. -e KBC_DEVELOPERPORTAL_PASSWORD \
  6. -e KBC_DEVELOPERPORTAL_URL \
  7. quay.io/keboola/developer-portal-cli-v2:latest ecr:get-repository \
  8. $KBC_DEVELOPERPORTAL_VENDOR $KBC_DEVELOPERPORTAL_APP`
  9. docker tag $KBC_APP_REPOSITORY:latest $REPOSITORY:$TRAVIS_TAG
  10. docker tag $KBC_APP_REPOSITORY:latest $REPOSITORY:latest
  11. eval $(docker run --rm \
  12. -e KBC_DEVELOPERPORTAL_USERNAME \
  13. -e KBC_DEVELOPERPORTAL_PASSWORD \
  14. -e KBC_DEVELOPERPORTAL_URL \
  15. quay.io/keboola/developer-portal-cli-v2:latest ecr:get-login \
  16. $KBC_DEVELOPERPORTAL_VENDOR $KBC_DEVELOPERPORTAL_APP)
  17. docker push $REPOSITORY:$TRAVIS_TAG
  18. docker push $REPOSITORY:latest
  19.  
  20. # Deploy the application to KBC
  21. docker run --rm \
  22. -e KBC_DEVELOPERPORTAL_USERNAME \
  23. -e KBC_DEVELOPERPORTAL_PASSWORD \
  24. -e KBC_DEVELOPERPORTAL_URL \
  25. quay.io/keboola/developer-portal-cli-v2:latest update-app-repository \
  26. $KBC_DEVELOPERPORTAL_VENDOR $KBC_DEVELOPERPORTAL_APP $TRAVIS_TAG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement