Created
July 20, 2021 11:53
-
-
Save theguuholi/adf7518a6ce7b84b4bba1aa36be2ef74 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| sudo: required | |
| language: elixir | |
| elixir: | |
| - 1.10 | |
| opt_release: | |
| - 22.2.6 | |
| addons: | |
| postgres: "9.4" | |
| services: | |
| - postgresql | |
| - docker | |
| env: | |
| global: | |
| - GCP_PROJECT_ID=propane-atrium-285212 | |
| - IMAGE=gcr.io/propane-atrium-285212/find_my_personal | |
| - CLOUD_RUN_SERVICE=propane-atrium-285212 | |
| - CLOUD_RUN_REGION=us-central1 | |
| - CLOUDSDK_CORE_DISABLE_PROMPTS=1 | |
| - SHA=$(git rev-parse HEAD) | |
| cache: | |
| directories: | |
| - _build | |
| - deps | |
| script: | |
| - mix format --check-formatted --dry-run | |
| - mix credo --strict | |
| - mix sobelow --config | |
| - mix coveralls.json | |
| after_success: | |
| - bash <(curl -s https://codecov.io/bash) | |
| before_deploy: | |
| - openssl aes-256-cbc -K $encrypted_98d237b7dbf4_key -iv $encrypted_98d237b7dbf4_iv -in google-key.json.enc -out google-key.json -d | |
| - curl https://sdk.cloud.google.com | bash > /dev/null #Download SDK GOOGLE | |
| - source "$HOME/google-cloud-sdk/path.bash.inc" | |
| - gcloud auth activate-service-account --key-file=google-key.json | |
| - gcloud auth configure-docker # habilita push para o gcr | |
| - gcloud config set project "${GCP_PROJECT_ID}" | |
| - gcloud components install beta # until Cloud Run is generally available (GA) | |
| # install: true # no-op | |
| deploy: | |
| skip_cleanup: true | |
| provider: script | |
| script: bash ./deploy.sh #git update-index --add --chmod=+x deploy.sh | |
| on: | |
| branch: master |
This file contains hidden or 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
| sudo: required | |
| language: elixir | |
| elixir: | |
| - '1.10' | |
| opt_release: '22.2.6' | |
| addons: | |
| postgres: "9.4" | |
| services: | |
| - postgresql | |
| - docker | |
| cache: | |
| directories: | |
| - _build | |
| - deps | |
| before_script: | |
| - mix local.hex --force | |
| - mix local.rebar --force | |
| - mix do deps.get, deps.compile | |
| script: | |
| - mix format --check-formatted --dry-run | |
| - mix credo --strict | |
| - mix sobelow --config | |
| - mix coveralls.json | |
| after_success: | |
| - bash <(curl -s https://codecov.io/bash) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment