diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index b3e4530..9699fd6 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -3,9 +3,9 @@ name: Test, Build & Push (dev) on: workflow_call: outputs: - image_tag: + imageTag: description: "The image tag that was pushed to ECR" - value: ${{ jobs.push_to_ecr.outputs.image_tag }} + value: ${{ jobs.push_to_ecr.outputs.imageTag }} # TODO: move to workflow inputs: env: @@ -18,7 +18,7 @@ jobs: name: Build & Push runs-on: ubuntu-latest outputs: - image_tag: ${{ steps.meta.outputs.image }} + imageTag: ${{ steps.meta.outputs.image }} steps: - name: Checking out the Repository uses: actions/checkout@v4 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a78ff30..639fde1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -2,6 +2,10 @@ name: Deployment (prod) on: workflow_call: + inputs: + imageTag: + required: true + type: string secrets: slack_webhook_url: required: true @@ -65,7 +69,7 @@ jobs: with: task-definition: task-definition-cleaned.json container-name: prod-use1-cmi-ants-celestia-watch - image: ${{ needs.build_push.outputs.image_tag }} + image: ${{ inputs.imageTag }} - name: Deploying to Amazon ECS uses: aws-actions/amazon-ecs-deploy-task-definition@v2 diff --git a/.github/workflows/push_main.yml b/.github/workflows/push_main.yml index 84ff51b..61bc57a 100644 --- a/.github/workflows/push_main.yml +++ b/.github/workflows/push_main.yml @@ -22,7 +22,6 @@ jobs: id-token: write contents: read - deploy: name: Ants uses: ./.github/workflows/deploy.yml @@ -30,5 +29,7 @@ jobs: permissions: id-token: write contents: read + with: + imageTag: ${{ needs.build_push.outputs.imageTag }} secrets: slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}