From 362d16544991a3841031909b7684de3c461beb56 Mon Sep 17 00:00:00 2001 From: Benjamin Eskola Date: Fri, 11 Aug 2023 15:19:48 +0100 Subject: [PATCH] Push directly to ECR repository to save time spent on exporting --- .github/workflows/deploy-environment.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-environment.yml b/.github/workflows/deploy-environment.yml index a738014..9196100 100644 --- a/.github/workflows/deploy-environment.yml +++ b/.github/workflows/deploy-environment.yml @@ -62,9 +62,8 @@ jobs: DOCKER_BUILDKIT=1 docker buildx build \ --cache-to type=gha,mode=max \ --cache-from type=gha \ - --load \ - -t paapi:$IMAGE_TAG -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.production . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG + --push \ + -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.production . deploy-db-migrate-service: name: Perform database migrations on ${{ inputs.environment-name }}