Skip to content

Commit c961b12

Browse files
ttionyayuval-cloudinary
authored andcommitted
build: fix docker release build - fixes rclone#8062
This updates the action to use `docker/build-push-action` instead of `ilteoood/docker_buildx` which fixes the build problem in testing.
1 parent 23377d3 commit c961b12

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

.github/workflows/build_publish_release_docker_image.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,27 @@ jobs:
3232
- name: Get actual major version
3333
id: actual_major_version
3434
run: echo ::set-output name=ACTUAL_MAJOR_VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v//g' | cut -d "." -f 1)
35+
- name: Set up QEMU
36+
uses: docker/setup-qemu-action@v3
37+
- name: Set up Docker Buildx
38+
uses: docker/setup-buildx-action@v3
39+
- name: Login to Docker Hub
40+
uses: docker/login-action@v3
41+
with:
42+
username: ${{ secrets.DOCKER_HUB_USER }}
43+
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
3544
- name: Build and publish image
36-
uses: ilteoood/[email protected]
45+
uses: docker/build-push-action@v6
3746
with:
38-
tag: latest,${{ steps.actual_patch_version.outputs.ACTUAL_PATCH_VERSION }},${{ steps.actual_minor_version.outputs.ACTUAL_MINOR_VERSION }},${{ steps.actual_major_version.outputs.ACTUAL_MAJOR_VERSION }}
39-
imageName: rclone/rclone
40-
platform: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6
41-
publish: true
42-
dockerHubUser: ${{ secrets.DOCKER_HUB_USER }}
43-
dockerHubPassword: ${{ secrets.DOCKER_HUB_PASSWORD }}
47+
file: Dockerfile
48+
context: .
49+
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6
50+
push: true
51+
tags: |
52+
rclone/rclone:latest
53+
rclone/rclone:${{ steps.actual_patch_version.outputs.ACTUAL_PATCH_VERSION }}
54+
rclone/rclone:${{ steps.actual_minor_version.outputs.ACTUAL_MINOR_VERSION }}
55+
rclone/rclone:${{ steps.actual_major_version.outputs.ACTUAL_MAJOR_VERSION }}
4456
4557
build_docker_volume_plugin:
4658
if: github.repository == 'rclone/rclone'

0 commit comments

Comments
 (0)