Skip to content

Commit e02b9c0

Browse files
committed
fix: revert docker cache
1 parent 171b205 commit e02b9c0

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/prod-deploy.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)