Skip to content

Commit

Permalink
CI: put deploy-to-aws-beta into its own section
Browse files Browse the repository at this point in the history
  • Loading branch information
JonJagger committed Oct 21, 2023
1 parent bcdea5e commit b3f1d59
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ env:

jobs:

build-test-deploy:
build-test-push:
runs-on: ubuntu-latest
permissions:
id-token: write
Expand Down Expand Up @@ -104,7 +104,6 @@ jobs:
kosli assert artifact cyberdojo/saver:${{ env.IMAGE_TAG }}
--artifact-type=docker

# Deploy to aws-beta ------------------
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1-node16
with:
Expand All @@ -130,17 +129,24 @@ jobs:
--description="Deployed to aws-beta in Github Actions pipeline"
--environment=aws-beta

# - name: Deploy to aws-beta
# uses: fivexl/gh-workflow-tf-plan-apply/.github/workflows/[email protected]
# with:
# aws_region: ${{ env.AWS_REGION }}
# aws_role_arn: arn:aws:iam::${{ env.AWS_ACCOUNT_ID_BETA }}:role/${{ env.GH_ACTIONS_IAM_ROLE_NAME }}
# aws_default_region: ${{ env.AWS_REGION }}
# aws_role_duration: 900
# working_directory: deployment/terraform/
# tf_apply: 'true'
# tf_version: v1.4.5
# tf_additional_env_vars: '{"TF_VAR_TAGGED_IMAGE": "${{ env.ECR_REGISTRY_BETA }}/saver:${{ env.IMAGE_TAG }}"}'

deploy-to-aws-beta:
needs: [build-test-push]
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
uses: fivexl/gh-workflow-tf-plan-apply/.github/workflows/[email protected]
with:
aws_region: ${{ env.AWS_REGION }}
aws_role_arn: arn:aws:iam::${{ env.AWS_ACCOUNT_ID_BETA }}:role/${{ env.GH_ACTIONS_IAM_ROLE_NAME }}
aws_default_region: ${{ env.AWS_REGION }}
aws_role_duration: 900
working_directory: deployment/terraform/
tf_apply: 'true'
tf_version: v1.4.5
tf_additional_env_vars: '{"TF_VAR_TAGGED_IMAGE": "${{ env.ECR_REGISTRY_BETA }}/saver:${{ env.IMAGE_TAG }}"}'


# - name: Report expected aws-prod deployment to Kosli
# run:
Expand Down

0 comments on commit b3f1d59

Please sign in to comment.