@@ -47,17 +47,26 @@ jobs:
47
47
echo "::set-output name=exists::false"
48
48
fi
49
49
50
+ - name : Set up QEMU
51
+ uses : docker/setup-qemu-action@v3
52
+ if : steps.image-exists.outputs.exists == 'false'
53
+
54
+ - name : Set up Docker Buildx
55
+ uses : docker/setup-buildx-action@v3
56
+ if : steps.image-exists.outputs.exists == 'false'
57
+
50
58
- uses : actions/checkout@v4
51
59
if : steps.image-exists.outputs.exists == 'false'
52
60
53
- - name : Build and push Docker image
61
+ - name : Build and push
62
+ uses : docker/build-push-action@v6
54
63
if : steps.image-exists.outputs.exists == 'false'
55
- run : |
56
- export PGLITE_BUILDER_IMAGE_NAME="${DOCKERHUB_REPO}/${IMAGE_NAME}"
57
- export BUILDER_VERSION="${PG_VERSION}-${SDK_VERSION}"
58
- docker buildx build --platform linux/arm64/v8,linux/amd64 --push \
59
- --build-arg PG_VERSION=$PG_VERSION \
60
- --build-arg SDK_VERSION=$SDK_VERSION \
61
- -t ${PGLITE_BUILDER_IMAGE_NAME}:${BUILDER_VERSION} \
62
- -t ${PGLITE_BUILDER_IMAGE_NAME}:latest \
63
- .
64
+ with :
65
+ platforms : linux/amd64,linux/arm64
66
+ push : true
67
+ build-args : |
68
+ PG_VERSION=${ PG_VERSION}
69
+ SDK_VERSION=${ SDK_VERSION}
70
+ tags : |
71
+ ${PGLITE_BUILDER_IMAGE_NAME}:${BUILDER_VERSION}
72
+ ${PGLITE_BUILDER_IMAGE_NAME}:latest
0 commit comments