remove deploy and test workflows from circle ci
@@ -16,80 +16,8 @@ jobs:
command: |-
set +o pipefail
golint ./... | reviewdog -f=golint -name=golint-circleci -reporter=github-pr-review
- test:
- working_directory: ~/reviewdog
- docker:
- - image: circleci/golang:1.15
- steps:
- - checkout
- - run: 'go test -v ./...'
- deploy:
- working_directory: ~/reviewdog/doghouse/appengine/
- docker:
- - image: ghcr.io/gcpug/appengine-go:1.15-slim
- environment:
- GAE_DEPLOY_ACCOUNT: review-dog@appspot.gserviceaccount.com
- GAE_DEPLOY_PROJECT: review-dog
- GAE_KEYRING_NAME: reviewdog-doghouse-deploy
- GAE_KEY_NAME: secret-env
- steps:
- - checkout:
- path: ~/reviewdog
- - run:
- name: System information
- command: 'echo "Golang $(go version)"'
- - run:
- name: gcloud command information
- command: 'gcloud version'
- - run:
- name: Activate Service Account
- command: |-
- echo $GAE_DEPLOY_KEY_FILE > service_account_key.json
- gcloud auth activate-service-account "$GAE_DEPLOY_ACCOUNT" --key-file=service_account_key.json --project "$GAE_DEPLOY_PROJECT"
- - run:
- name: Decrypt keys
- command: |-
- gcloud kms decrypt --location=global \
- --keyring="$GAE_KEYRING_NAME" \
- --key="$GAE_KEY_NAME" \
- --ciphertext-file=secret/encrypted-reviewdog.private-key.pem.bin \
- --plaintext-file=secret/reviewdog.private-key.pem
- gcloud kms decrypt --location=global \
- --keyring="$GAE_KEYRING_NAME" \
- --key="$GAE_KEY_NAME" \
- --ciphertext-file=secret/encrypted-secret.yaml.bin \
- --plaintext-file=secret/secret.yaml
- - run:
- name: Deploy
- command: |-
- # Remove files which contains multibyte characters to avoid gcloud error...
- rm -rf ../../diff/testdata/
- gcloud --quiet --project $GAE_DEPLOY_PROJECT app deploy app.yaml
- - run:
- name: Cleanup
- command: |-
- rm service_account_key.json
- rm secret/reviewdog.private-key.pem
- rm secret/secret.yaml
-
workflows:
version: 2
- lint_test_deploy:
+ lint:
jobs:
- lint:
- filters: # required since `deploy` has tag filters AND requires `lint`
- tags:
- only: /.*/
- - test:
- filters: # required since `deploy` has tag filters AND requires `test`
- tags:
- only: /.*/
- - deploy:
- requires:
- - lint
- - test
- filters:
- branches:
- ignore: /.*/
- tags:
- only: /v[0-9]+(\.[0-9]+)*(-.*)*/
