control-plane-flow
control-plane-flow copied to clipboard
Can we DRY up CI setup? Useful to use Circle CI Orb?
Could we make an ORB for the circle ci setup
Share common code to avoid copy/paste.
- https://circleci.com/orbs/
For Github? https://www.perplexity.ai/search/does-github-actions-GBl3nSKSTmmTT2mBAU7vXg
- run:
name: Provision review app if needed
command: |
if ! cpl exists -a $APP_NAME; then
cpl setup-app -a $APP_NAME
cpln policy add-binding $APP_NAME_REVIEW-secrets-policy \
--permission reveal \
--identity /org/$CPLN_ORG_STAGING/gvc/$APP_NAME/identity/$APP_NAME-identity
echo "export NEW_APP=true" >> $BASH_ENV
fi