cd: efs #4
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: CD compute | |
on: | |
push: | |
branches: | |
- 'prod' | |
- 'preprod' | |
workflow_dispatch: | |
workflow_call: | |
jobs: | |
deploy-api: | |
if: ${{ github.ref_name == 'prod' || github.ref_name == 'preprod' }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
env: | |
AWS_REGION: eu-west-3 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'corretto' | |
- uses: hei-school/[email protected] | |
with: | |
secrets: ${{ toJSON(secrets) }} | |
region: ${{ env.AWS_REGION }} | |
- run: sam build | |
- name: Deploy application | |
run: sam deploy --no-confirm-changeset --no-fail-on-empty-changeset --stack-name ${{ github.ref_name }}-compute-poja-base --capabilities CAPABILITY_IAM --parameter-overrides Env=${{ github.ref_name }} --resolve-s3 |