Skip to content

Commit 81ba93f

Browse files
committed
fixing workflow syntax
1 parent cf03307 commit 81ba93f

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

.github/workflows/setup.yml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,19 @@ on:
55
- v*
66

77
jobs:
8-
call-workflow:
9-
name: 'Call deployment workflow for target environment'
10-
runs-on: ubuntu-latest
11-
steps:
12-
- name: 'Checkout'
13-
uses: actions/checkout@v2
14-
- name: 'Deploy dev'
15-
uses: ./.github/workflows/deploy.yml
16-
if: contains(github.ref, 'dev')
17-
with:
18-
aws-region: us-east-1
19-
s3-bucket-name: ips-viewer-app
20-
aws-assume-role: ${{ secrets.GH_AWS_SERVICE_ROLE_DEV }}
21-
- name: 'Deploy prod'
22-
# uses: ./.github/workflows/deploy.yml
23-
if: contains(github.ref, 'prod')
24-
# with:
25-
# aws-region: us-east-1
26-
# s3-bucket-name: ips-viewer-app-prod
27-
# aws-assume-role: ${{ secrets.GH_AWS_SERVICE_ROLE_PROD }}
28-
run:
29-
echo 'Not yet implemented'
8+
deploy-dev:
9+
if: contains(github.ref, 'dev')
10+
name: 'Call dev deployment workflow'
11+
uses: ./.github/workflows/deploy.yml
12+
with:
13+
aws-region: us-east-1
14+
s3-bucket-name: ips-viewer-app
15+
aws-assume-role: ${{ secrets.GH_AWS_SERVICE_ROLE_DEV }}
16+
deploy-prod:
17+
if: contains(github.ref, 'prod')
18+
name: 'Call dev deployment workflow'
19+
uses: ./.github/workflows/deploy.yml
20+
with:
21+
aws-region: us-east-1
22+
s3-bucket-name: ips-viewer-app
23+
aws-assume-role: ${{ secrets.GH_AWS_SERVICE_ROLE_PROD }}

0 commit comments

Comments
 (0)