File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed
Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -52,31 +52,15 @@ jobs:
5252 restore-keys : |
5353 ${{ runner.os }}-buildx-
5454
55- # Create cache directory if it doesn't exist
56- - name : Ensure cache directory exists
57- run : mkdir -p /tmp/.buildx-cache
58-
5955 - name : Build, tag, and push image to Amazon ECR
6056 id : build-image
6157 env :
6258 ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
6359 ECR_REPOSITORY : ${{ secrets.REPOSITORY }}
6460 IMAGE_TAG : ${{ vars.IMAGE_TAG }}
6561 run : |
66- docker buildx build \
67- --cache-from type=local,src=/tmp/.buildx-cache \
68- --cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max \
69- --tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
70- --push \
71- .
72-
73- # Temp fix for cache issue
74- # https://github.com/docker/build-push-action/issues/252
75- # https://github.com/moby/buildkit/issues/1896
76- - name : Move cache
77- run : |
78- rm -rf /tmp/.buildx-cache
79- mv /tmp/.buildx-cache-new /tmp/.buildx-cache
62+ docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
63+ docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
8064
8165 deploy-frontend-service :
8266 name : Deploy to Frontend Service
You can’t perform that action at this time.
0 commit comments