control-plane-flow icon indicating copy to clipboard operation
control-plane-flow copied to clipboard

Can we DRY up CI setup? Useful to use Circle CI Orb?

Open justin808 opened this issue 11 months ago • 0 comments

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

justin808 avatar Mar 13 '24 19:03 justin808