From e6e27395dab2564efc4711086d000ff4f260a449 Mon Sep 17 00:00:00 2001 From: Brianna Veenstra Date: Fri, 17 Aug 2018 15:21:40 -0700 Subject: [PATCH] [INFRA-3186] autotranslate CircleCI 1.0 -> 2.0 --- .circleci/config.yml | 29 +++++++++++++++++++++++++++++ circle.yml | 29 ----------------------------- 2 files changed, 29 insertions(+), 29 deletions(-) create mode 100644 .circleci/config.yml delete mode 100644 circle.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..5ea2a84 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,29 @@ +version: 2 +jobs: + build: + working_directory: /go/src/github.com/Clever/godoc-docker + docker: + - image: circleci/golang:1.10.3-stretch + environment: + CIRCLE_ARTIFACTS: /tmp/circleci-artifacts + CIRCLE_TEST_REPORTS: /tmp/circleci-test-results + steps: + - run: + command: cd $HOME && git clone --depth 1 -v https://github.com/Clever/ci-scripts.git && cd ci-scripts && git show --oneline -s + name: Clone ci-scripts + - checkout + - setup_remote_docker + - run: + command: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS + name: Set up CircleCI artifacts directories + - run: echo "do nothing" + - run: $HOME/ci-scripts/circleci/report-card $RC_DOCKER_USER $RC_DOCKER_PASS "$RC_DOCKER_EMAIL" $RC_GITHUB_TOKEN + - run: + command: |- + cd /tmp/ && wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py + sudo apt-get install python-dev + sudo pip install --upgrade awscli && aws --version + pip install --upgrade --user awscli + name: Install awscli for ECR publish + - 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 godoc-docker diff --git a/circle.yml b/circle.yml deleted file mode 100644 index 0ca1218..0000000 --- a/circle.yml +++ /dev/null @@ -1,29 +0,0 @@ -machine: - post: - - cd $HOME && git clone --depth 1 -v git@github.com:clever/ci-scripts.git && cd ci-scripts && git show --oneline -s - - $HOME/ci-scripts/circleci/golang-install 1.10 - services: - - docker -checkout: - post: - - $HOME/ci-scripts/circleci/golang-move-project -test: - override: - - echo "do nothing" - post: - - $HOME/ci-scripts/circleci/report-card $RC_DOCKER_USER $RC_DOCKER_PASS "$RC_DOCKER_EMAIL" $RC_GITHUB_TOKEN -deployment: - master: - owner: Clever - commands: - - $HOME/ci-scripts/circleci/docker-publish $DOCKER_USER $DOCKER_PASS "$DOCKER_EMAIL" $DOCKER_ORG - - $HOME/ci-scripts/circleci/catapult-publish $CATAPULT_URL $CATAPULT_USER $CATAPULT_PASS godoc-docker - branch: master - non-master: - owner: Clever - commands: - - $HOME/ci-scripts/circleci/docker-publish $DOCKER_USER $DOCKER_PASS "$DOCKER_EMAIL" $DOCKER_ORG - - $HOME/ci-scripts/circleci/catapult-publish $CATAPULT_URL $CATAPULT_USER $CATAPULT_PASS godoc-docker - branch: /^(?!master$).*$/ -general: - build_dir: ../.go_workspace/src/github.com/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME