File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -33,23 +33,11 @@ runs:
33
33
34
34
- uses : docker/setup-buildx-action@v3
35
35
36
- - uses : actions/cache@v4
37
- with :
38
- path : /tmp/.buildx-cache
39
- key : ${{ runner.os }}-buildx-${{ github.sha }}
40
- restore-keys : ${{ runner.os }}-buildx-
41
-
42
36
- shell : bash
43
37
env :
44
38
IMAGE : ${{ steps.ecr-login.outputs.registry }}/${{ inputs.aws-ecr-repository }}:${{ github.sha }}
45
39
run : |
46
- docker buildx create --use
47
- docker buildx build . \
48
- --cache-from=type=local,src=/tmp/.buildx-cache \
49
- --cache-to=type=local,dest=/tmp/.buildx-cache,mode=max \
50
- --tag $IMAGE \
51
- --file docker/Dockerfile \
52
- --push
40
+ docker build . -t $IMAGE -f docker/Dockerfile --platform linux/amd64,linux/arm64
53
41
docker push $IMAGE
54
42
echo "image=$IMAGE" >> $GITHUB_OUTPUT
55
43
id : build-and-push
You can’t perform that action at this time.
0 commit comments