From fd7a38ead140957bb6a2b6885a89af31feda026a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Thu, 20 Oct 2022 13:04:40 +0200 Subject: [PATCH] fix: deploying worker images --- .github/workflows/common-deploy.yml | 5 ++++- .github/workflows/common-server-application.yml | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/common-deploy.yml b/.github/workflows/common-deploy.yml index 4a6307547..fb7dac71a 100644 --- a/.github/workflows/common-deploy.yml +++ b/.github/workflows/common-deploy.yml @@ -6,6 +6,9 @@ on: service_name: required: true type: string + docker_image: + required: true + type: string secrets: AWS_ACCESS_KEY_ID: required: true @@ -39,7 +42,7 @@ jobs: with: task-definition: task-definition.json container-name: ${{ inputs.service_name }}-prod - image: ${{ secrets.AWS_ECR_REGISTRY }}/${{ inputs.service_name }}:${{ github.sha }} + image: ${{ inputs.docker_image }} - name: Deploy Amazon ECS task definition uses: aws-actions/amazon-ecs-deploy-task-definition@v1 diff --git a/.github/workflows/common-server-application.yml b/.github/workflows/common-server-application.yml index d80078429..28fc2b6b1 100644 --- a/.github/workflows/common-server-application.yml +++ b/.github/workflows/common-server-application.yml @@ -220,6 +220,7 @@ jobs: uses: standardnotes/server/.github/workflows/common-deploy.yml@main with: service_name: ${{ inputs.service_name }} + docker_image: ${{ secrets.AWS_ECR_REGISTRY }}/${{ inputs.service_name }}:${{ github.sha }} secrets: inherit deploy-worker: @@ -231,4 +232,5 @@ jobs: uses: standardnotes/server/.github/workflows/common-deploy.yml@main with: service_name: ${{ inputs.service_name }}-worker + docker_image: ${{ secrets.AWS_ECR_REGISTRY }}/${{ inputs.service_name }}:${{ github.sha }} secrets: inherit