Merge pull request #5 from IDN-Media/remove_workflow_prod_dev #17
This file contains 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
name: master | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
Deploy: | |
name: Deploy | |
permissions: | |
contents: read | |
id-token: write | |
environment: beta | |
runs-on: | |
- self-hosted | |
- codebuild-x64 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Authenticate Via OIDC Role | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-region: ap-southeast-1 | |
role-duration-seconds: 1800 | |
role-skip-session-tagging: true | |
role-to-assume: arn:aws:iam::727174507127:role/GitHubActionRole | |
- name: Assume CDK Deploy Role | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-region: ap-southeast-1 | |
role-duration-seconds: 1800 | |
role-skip-session-tagging: true | |
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} | |
aws-session-token: ${{ env.AWS_SESSION_TOKEN }} | |
role-to-assume: arn:aws:iam::590411560808:role/cdk-hnb659fds-deploy-role-590411560808-ap-southeast-1 | |
role-external-id: Pipeline | |
- name: CDK Deploy | |
run: |- | |
cd cdk | |
pwd | |
npm i | |
#npm run build | |
npx cdk synth 'Beta-IceDocsPartnerWebsite/**' | |
npx cdk deploy 'Beta-IceDocsPartnerWebsite/**' --require-approval never |