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