Skip to content

Commit 6ba059a

Browse files
Replace Docker Buildx setup with updated actions
1 parent b14b715 commit 6ba059a

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/build_and_push.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ jobs:
5454
haskell: true
5555
large-packages: false
5656
swap-storage: true
57+
- name: Set up QEMU
58+
uses: docker/setup-qemu-action@v3
59+
- name: Set up Docker Buildx
60+
uses: docker/setup-buildx-action@v3
5761
- name: Prepare
5862
id: prepare
5963
run: |
@@ -69,8 +73,6 @@ jobs:
6973
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} --memory-swap -1 \
7074
--build-arg DOCKER_IMAGE_TAG=${{ github.event.inputs.dockerImageTag }} --build-arg BUILD_AT=$(TZ=Asia/Shanghai date +'%Y-%m-%dT%H:%M') --build-arg GITHUB_COMMIT=`git rev-parse --short HEAD` --no-cache \
7175
${DOCKER_IMAGE_TAGS} .
72-
- name: Set up Docker Buildx
73-
uses: crazy-max/ghaction-docker-buildx@v3
7476
- name: Login to Aliyun Registry
7577
uses: docker/login-action@v2
7678
with:
@@ -101,6 +103,10 @@ jobs:
101103
haskell: true
102104
large-packages: false
103105
swap-storage: true
106+
- name: Set up QEMU
107+
uses: docker/setup-qemu-action@v3
108+
- name: Set up Docker Buildx
109+
uses: docker/setup-buildx-action@v3
104110
- name: Prepare
105111
id: prepare
106112
run: |
@@ -116,13 +122,11 @@ jobs:
116122
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} --memory-swap -1 \
117123
--build-arg DOCKER_IMAGE_TAG=${{ github.event.inputs.dockerImageTag }} --build-arg BUILD_AT=$(TZ=Asia/Shanghai date +'%Y-%m-%dT%H:%M') --build-arg GITHUB_COMMIT=`git rev-parse --short HEAD` --no-cache \
118124
${DOCKER_IMAGE_TAGS} .
119-
- name: Set up Docker Buildx
120-
uses: crazy-max/ghaction-docker-buildx@v3
121125
- name: Login to Docker Hub
122126
uses: docker/login-action@v3
123127
with:
124128
username: ${{ secrets.DOCKERHUB_USERNAME }}
125129
password: ${{ secrets.DOCKERHUB_TOKEN }}
126130
- name: Docker Buildx (build-and-push)
127131
run: |
128-
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}
132+
docker buildx build --output "type=image,push=true" ${{ steps.prepare.outputs.buildx_args }}

0 commit comments

Comments
 (0)