Skip to content

Commit

Permalink
Merge pull request #367 from Clever/circleci-oidc
Browse files Browse the repository at this point in the history
Upgrade CircleCI to use contexts for OIDC
  • Loading branch information
taylor-sutton authored Sep 20, 2023
2 parents 49179f2 + 6a1e79c commit e9c05ff
Showing 1 changed file with 27 additions and 20 deletions.
47 changes: 27 additions & 20 deletions .circleci/config.yml
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

0 comments on commit e9c05ff

Please sign in to comment.