Skip to content

Commit 4b5fafe

Browse files
authored
Deploy ECS (#36)
* Deploy ECS * Test deployment * Added secrets * Test Dockerfile build * Test Dockerfile build * Fix workflow * Fix output * Fix output
1 parent ac60e40 commit 4b5fafe

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

.github/workflows/feature-branch.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ permissions:
1111
contents: read
1212

1313
jobs:
14-
perform:
15-
uses: cloudposse/github-actions-workflows/.github/workflows/dockerized-app-feature-branch.yml@main
14+
do:
15+
uses: cloudposse/github-actions-workflows/.github/workflows/dockerized-ecs-app-feature-branch.yml@deploy-ecs
1616
with:
1717
organization: "${{ github.event.repository.owner.login }}"
1818
repository: "${{ github.event.repository.name }}"
1919
open: ${{ github.event.pull_request.state == 'open' }}
2020
labels: ${{ toJSON(github.event.pull_request.labels.*.name) }}
2121
ref: ${{ github.event.pull_request.head.ref }}
22+
spacelift-organization: ${{ github.event.repository.owner.login }}
2223
secrets:
2324
github-private-actions-pat: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}"
2425
registry: "${{ secrets.ECR_REGISTRY }}"
2526
secret-outputs-passphrase: "${{ secrets.GHA_SECRET_OUTPUT_PASSPHRASE }}"
27+
spacelift-api-key-id: ${{ secrets.SPACELIFT_API_KEY_ID }}
28+
spacelift-api-key-secret: ${{ secrets.SPACELIFT_API_KEY_SECRET }}

.github/workflows/main-branch.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,15 @@ permissions:
88
id-token: write
99

1010
jobs:
11-
perform:
12-
uses: cloudposse/github-actions-workflows/.github/workflows/dockerized-app-main-branch.yml@main
11+
do:
12+
uses: cloudposse/github-actions-workflows/.github/workflows/dockerized-ecs-app-main-branch.yml@deploy-ecs
1313
with:
1414
organization: "${{ github.event.repository.owner.login }}"
1515
repository: "${{ github.event.repository.name }}"
16+
spacelift-organization: ${{ github.event.repository.owner.login }}
1617
secrets:
1718
github-private-actions-pat: "${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}"
1819
registry: "${{ secrets.ECR_REGISTRY }}"
1920
secret-outputs-passphrase: "${{ secrets.GHA_SECRET_OUTPUT_PASSPHRASE }}"
21+
spacelift-api-key-id: ${{ secrets.SPACELIFT_API_KEY_ID }}
22+
spacelift-api-key-secret: ${{ secrets.SPACELIFT_API_KEY_SECRET }}

0 commit comments

Comments
 (0)