-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #367 from Clever/circleci-oidc
Upgrade CircleCI to use contexts for OIDC
- Loading branch information
Showing
1 changed file
with
27 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,32 @@ | ||
version: 2 | ||
version: 2.1 | ||
jobs: | ||
build: | ||
working_directory: ~/go/src/github.com/Clever/workflow-manager | ||
docker: | ||
- image: cimg/go:1.16-node | ||
- image: cimg/go:1.16-node | ||
steps: | ||
- checkout | ||
- setup_remote_docker | ||
- run: | ||
name: Clone ci-scripts | ||
command: cd $HOME && git clone --depth 1 -v https://github.com/Clever/ci-scripts.git && cd ci-scripts && git show --oneline -s | ||
- run: make install_deps | ||
- run: make build | ||
- run: make test | ||
- run: $HOME/ci-scripts/circleci/docker-publish $DOCKER_USER $DOCKER_PASS "$DOCKER_EMAIL" $DOCKER_ORG | ||
- run: $HOME/ci-scripts/circleci/catapult-publish $CATAPULT_URL $CATAPULT_USER $CATAPULT_PASS $APP_NAME | ||
- run: $HOME/ci-scripts/circleci/catapult-publish-lambda sfn-execution-events-consumer | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/dapple-deploy $DAPPLE_URL $DAPPLE_USER $DAPPLE_PASS $APP_NAME; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/dapple-deploy $DAPPLE_URL $DAPPLE_USER $DAPPLE_PASS sfn-execution-events-consumer; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/npm-publish $NPM_TOKEN gen-js/; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then cat ./swagger.yml | grep "^ version:" | cut -d":" -f2 | tr -d " " > ./VERSION; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/github-release $GH_RELEASE_TOKEN; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/submodule-github-release $GH_RELEASE_TOKEN gen-go/client; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/submodule-github-release $GH_RELEASE_TOKEN gen-go/models; fi; | ||
- checkout | ||
- setup_remote_docker | ||
- run: | ||
name: Clone ci-scripts | ||
command: cd $HOME && git clone --depth 1 -v https://github.com/Clever/ci-scripts.git && cd ci-scripts && git show --oneline -s | ||
- run: make install_deps | ||
- run: make build | ||
- run: make test | ||
- run: $HOME/ci-scripts/circleci/docker-publish $DOCKER_USER $DOCKER_PASS "$DOCKER_EMAIL" $DOCKER_ORG | ||
- run: $HOME/ci-scripts/circleci/catapult-publish $CATAPULT_URL $CATAPULT_USER $CATAPULT_PASS $APP_NAME | ||
- run: $HOME/ci-scripts/circleci/catapult-publish-lambda sfn-execution-events-consumer | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/dapple-deploy $DAPPLE_URL $DAPPLE_USER $DAPPLE_PASS $APP_NAME; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/dapple-deploy $DAPPLE_URL $DAPPLE_USER $DAPPLE_PASS sfn-execution-events-consumer; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/npm-publish $NPM_TOKEN gen-js/; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then cat ./swagger.yml | grep "^ version:" | cut -d":" -f2 | tr -d " " > ./VERSION; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/github-release $GH_RELEASE_TOKEN; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/submodule-github-release $GH_RELEASE_TOKEN gen-go/client; fi; | ||
- run: if [ "${CIRCLE_BRANCH}" == "master" ]; then $HOME/ci-scripts/circleci/submodule-github-release $GH_RELEASE_TOKEN gen-go/models; fi; | ||
workflows: | ||
build_test_publish_deploy: | ||
jobs: | ||
- build: | ||
context: | ||
- aws-ecr-public | ||
- aws-lambda-public |