Skip to content

Commit

Permalink
Update aws.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
conorheffron authored Sep 16, 2024
1 parent 24be95e commit 29f403a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/aws.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ env:
ECS_CLUSTER: IronocPortfolioCluster
ECS_TASK_DEFINITION: .aws/task-definition.json
CONTAINER_NAME: ironoc
GIT_API_TOKEN: ${{ secrets.GIT_API_TOKEN }}

permissions:
contents: read
Expand Down Expand Up @@ -55,8 +54,8 @@ jobs:
# Build a docker container and
# push it to ECR so that it can
# be deployed to ECS.
export GIT_API_TOKEN=$GIT_API_TOKEN
docker build --secret id=GIT_API_TOKEN,src=GIT_API_TOKEN -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
export GIT_API_TOKEN=${{ secrets.GIT_API_TOKEN }}
docker build --secret id=GIT_API_TOKEN,src=$GIT_API_TOKEN -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "image=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 29f403a

Please sign in to comment.