Skip to content

Commit

Permalink
project name var
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispsheehan committed Sep 29, 2024
1 parent 902a2f0 commit 1b3bfd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
type: string

env:
TF_VAR_project_name: ${{ inputs.repository_name }}
TF_VAR_region: ${{ inputs.aws_region }}
TF_VAR_private_vpc_name: ecs-private-vpc
TF_VAR_api_stage_name: dev
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ permissions:
contents: read

jobs:
init-task:
init:
uses: ./.github/workflows/build.yml
with:
aws_account_id: ${{ vars.AWS_ACCOUNT_ID }}
Expand All @@ -32,10 +32,10 @@ jobs:

service:
needs:
- init-task
- init
runs-on: ubuntu-latest
env:
TF_VAR_task_definition_arn: ${{ needs.init-task.outputs.task_definition_arn }}
TF_VAR_task_definition_arn: ${{ needs.init.outputs.task_definition_arn }}
outputs:
cluster_name: ${{ steps.set-envs.outputs.CLUSTER_NAME }}
service_name: ${{ steps.set-envs.outputs.SERVICE_NAME }}
Expand Down

0 comments on commit 1b3bfd8

Please sign in to comment.