Skip to content

Commit

Permalink
ah, output for job-job info
Browse files Browse the repository at this point in the history
Signed-off-by: Duncan Ragsdale <[email protected]>
  • Loading branch information
Thistleman committed Mar 8, 2024
1 parent 185b682 commit 125a06b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deployapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ jobs:
name: Deploy API
runs-on: ubuntu-latest
environment: production
outputs:
image: ${{ steps.build-image-api.outputs.image }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -56,15 +54,15 @@ jobs:
--secret id=sak,env=${{ secrets.AWS_SECRET_ACCESS_KEY }} \
-f Dockerfile.prod .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "{image}={$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG}" >> $GITHUB_OUTPUT
echo "IMAGE=$ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG" >> $GITHUB_ENV
- name: Fill in the new image ID in the Amazon ECS task definition
id: task-def
uses: aws-actions/amazon-ecs-render-task-definition@v1
with:
task-definition: task-definition.json
container-name: ${{ env.API_CONTAINER_NAME }}
image: ${{ steps.build-image-api.outputs.image }}
image: ${{ env.IMAGE }}

- name: Deploy Amazon ECS task definition
uses: aws-actions/amazon-ecs-deploy-task-definition@v1
Expand Down

0 comments on commit 125a06b

Please sign in to comment.