File tree Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 7979 build-ui :
8080 name : Build And upload UI to s3 ${{ inputs.environment_name }}
8181 environment : ${{ inputs.environment_name }}
82- if : ${{ inputs.command == 'apply' }}
82+ if : ( inputs.command == 'apply' )
8383 needs : [deploy-api, deploy-cloudfront]
8484 runs-on : ubuntu-24.04
8585 steps :
Original file line number Diff line number Diff line change 9292 # Run terraform
9393 terragrunt run-all ${{inputs.command}} --terragrunt-non-interactive
9494 - name : Terragrunt API Outputs
95- if : ${{ inputs.working_directory == 'api' && inputs.command == 'apply' }}
95+ if : ( inputs.working_directory == 'api' && inputs.command == 'apply' )
9696 working-directory : terraform/${{ inputs.working_directory }}/${{ inputs.environment_name }}
9797 id : tg-outputs
9898 env :
@@ -109,7 +109,7 @@ jobs:
109109
110110 echo "API_GW_URL=$(jq -r .apigw_url.value outputs.json)" >> $GITHUB_OUTPUT
111111 - name : Terragrunt Frontend Outputs
112- if : ${{ inputs.working_directory == 'frontend' && inputs.command == 'apply' }}
112+ if : ( inputs.working_directory == 'frontend' && inputs.command == 'apply' )
113113 working-directory : terraform/${{ inputs.working_directory }}/${{ inputs.environment_name }}
114114 id : tg-outputs-frontend
115115 env :
Original file line number Diff line number Diff line change @@ -21,15 +21,15 @@ jobs:
2121 - name : Checkout
2222 uses : actions/checkout@v4
2323 - name : Run Docker compose
24- if : ${{ inputs.frontend_url == 'http://localhost:3000' }}
24+ if : ( inputs.frontend_url == 'http://localhost:3000' )
2525 env :
2626 BACKEND_IMAGE : ghcr.io/${{ github.repository }}/backend:${{ inputs.tag }}
2727 FLYWAY_IMAGE : ghcr.io/${{ github.repository }}/migrations:${{ inputs.tag }}
2828 FRONTEND_IMAGE : ghcr.io/${{ github.repository }}/frontend:${{ inputs.tag }}
2929 run : docker compose up -d --wait
3030 continue-on-error : true
3131 - name : Docker Compose Logs
32- if : ${{ inputs.frontend_url == 'http://localhost:3000' }}
32+ if : ( inputs.frontend_url == 'http://localhost:3000' )
3333 run : docker compose logs
3434 - name : Cache Playwright Browsers
3535 uses : actions/cache@v4
Original file line number Diff line number Diff line change 7575 triggers : ('frontend/')
7676 trivy :
7777 name : Trivy Security Scan
78- if : ${{ ! github.event.pull_request.draft }}
78+ if : ( ! github.event.pull_request.draft)
7979 runs-on : ubuntu-24.04
8080 permissions :
8181 contents : read # This is required for actions/checkout
Original file line number Diff line number Diff line change 3333 uses : ./.github/workflows/.stack-prefix.yml
3434 pause-resources-dev :
3535 name : Pause Resources Dev
36- if : (${{ inputs.app_env == 'dev' || inputs.app_env == 'all'}} || github.event_name == 'schedule')
36+ if : (inputs.app_env == 'dev' || inputs.app_env == 'all' || github.event_name == 'schedule')
3737 needs : [stack-prefix]
3838 runs-on : ubuntu-24.04
3939 steps :
5252
5353 pause-resources-test :
5454 name : Pause Resources Test
55- if : (${{ inputs.app_env == 'test' || inputs.app_env == 'all'}} || github.event_name == 'schedule')
55+ if : (inputs.app_env == 'test' || inputs.app_env == 'all' || github.event_name == 'schedule')
5656 environment : test
5757 needs : [stack-prefix]
5858 runs-on : ubuntu-24.04
7272 ./.github/scripts/pause.sh test ${{ needs.stack-prefix.outputs.stack_prefix }}
7373 pause-resources-prod :
7474 name : Pause Resources PROD
75- if : (${{ inputs.app_env == 'prod' || inputs.app_env == 'all'}} || github.event_name == 'schedule')
75+ if : (inputs.app_env == 'prod' || inputs.app_env == 'all' || github.event_name == 'schedule')
7676 environment : prod
7777 needs : [stack-prefix]
7878 runs-on : ubuntu-24.04
Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ permissions:
2424jobs :
2525 destroy-dev :
2626 name : Destroy Stack Dev
27- if : ${{ github.event.inputs.app_env == 'dev' }}
27+ if : ( github.event.inputs.app_env == 'dev' )
2828 uses : ./.github/workflows/.destroy_stack.yml
2929 secrets : inherit
3030 with :
3131 environment_name : ${{ github.event.inputs.environment_name }}
3232 app_env : ${{ github.event.inputs.app_env }}
3333 destroy-test :
3434 name : Destroy Stack Test
35- if : ${{ github.event.inputs.app_env == 'test' }}
35+ if : ( github.event.inputs.app_env == 'test' )
3636 uses : ./.github/workflows/.destroy_stack.yml
3737 secrets : inherit
3838 with :
Original file line number Diff line number Diff line change 1010 default : ' test'
1111 type : string
1212concurrency :
13- group : main
13+ group : prod
1414 cancel-in-progress : false
1515# This concurrency group ensures that only one workflow runs at a time for the main branch.
1616permissions :
You can’t perform that action at this time.
0 commit comments