Skip to content

Commit

Permalink
add environment to access secrets (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Onyedikachi authored Oct 22, 2024
1 parent d2147d3 commit 0062ccc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

jobs:
build-push-docker:
environment: test
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -28,6 +29,7 @@ jobs:
docker push ${REGISTRY_NAME}/${REPOSITORY_NAME}:${IMAGE_TAG}
update-ssm:
environment: test
runs-on: ubuntu-latest
defaults:
run:
Expand Down Expand Up @@ -55,6 +57,7 @@ jobs:
restart:
needs: [build-push-docker, update-ssm]
runs-on: ubuntu-latest
environment: test
defaults:
run:
working-directory: .
Expand All @@ -69,7 +72,7 @@ jobs:
run: |
#!/bin/bash
aws ecs describe-task-definition \
--task-definition arn:aws:ecs:us-west-2:677459762413:task-definition/${ECS_SERVICE_NAME}
--task-definition arn:aws:ecs:-west-2:794038231069:task-definition/${ECS_SERVICE_NAME}
aws ecs update-service \
--service ${ECS_SERVICE_NAME} \
--cluster ${ECS_CLUSTER_NAME} \
Expand Down

0 comments on commit 0062ccc

Please sign in to comment.