Skip to content

Commit

Permalink
ci: add parameters for the deployment logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zhelezovartem committed Aug 18, 2022
1 parent 09021d7 commit 46cda99
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 49 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -42,21 +42,37 @@ jobs:
deploy-staging:
needs: [pre-build, build-test-push]
uses: cyber-dojo/reusable-actions-workflows/.github/workflows/deploy.yml@master
secrets:
MERKELY_API_TOKEN: ${{ secrets.MERKELY_API_TOKEN }}
with:
tagged_image: 244531986313.dkr.ecr.eu-central-1.amazonaws.com/languages-start-points:${{ needs.pre-build.outputs.tag }}
AWS_ACCOUNT_ID: 244531986313
AWS_REGION: eu-central-1
gh_actions_iam_role_name: gh_actions_services
environment_url: https://beta.cyber-dojo.org
environment_name: staging
cyber_dojo_env_name: beta
cyber_dojo_env_name_aws: aws-beta
kosli_staging_host: https://staging.app.merkely.com
kosli_production_host: https://app.merkely.com
circle_sha1: ${{ github.sha }}
circle_build_url: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}

deploy-prod:
needs: [pre-build, build-test-push, deploy-staging]
uses: cyber-dojo/reusable-actions-workflows/.github/workflows/deploy.yml@master
secrets:
MERKELY_API_TOKEN: ${{ secrets.MERKELY_API_TOKEN }}
with:
tagged_image: 274425519734.dkr.ecr.eu-central-1.amazonaws.com/languages-start-points:${{ needs.pre-build.outputs.tag }}
AWS_ACCOUNT_ID: 274425519734
AWS_REGION: eu-central-1
gh_actions_iam_role_name: gh_actions_services
environment_url: https://prod.cyber-dojo.org
environment_name: production
environment_name: production
cyber_dojo_env_name: prod
cyber_dojo_env_name_aws: aws-prod
kosli_staging_host: https://staging.app.merkely.com
kosli_production_host: https://app.merkely.com
circle_sha1: ${{ github.sha }}
circle_build_url: ${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}
44 changes: 0 additions & 44 deletions deployment/terraform/gh_environments/main.tf

This file was deleted.

4 changes: 0 additions & 4 deletions deployment/terraform/gh_environments/variables.tf

This file was deleted.

0 comments on commit 46cda99

Please sign in to comment.