build: fix docker release build - fixes #8062

This updates the action to use `docker/build-push-action` instead of `ilteoood/docker_buildx`
which fixes the build problem in testing.
This commit is contained in:
ttionya 2024-09-13 00:57:53 +08:00 committed by Nick Craig-Wood
parent 737fcc804f
commit 76b76c30bf

View file

@ -32,15 +32,27 @@ jobs:
- name: Get actual major version - name: Get actual major version
id: actual_major_version id: actual_major_version
run: echo ::set-output name=ACTUAL_MAJOR_VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v//g' | cut -d "." -f 1) run: echo ::set-output name=ACTUAL_MAJOR_VERSION::$(echo $GITHUB_REF | cut -d / -f 3 | sed 's/v//g' | cut -d "." -f 1)
- name: Build and publish image - name: Set up QEMU
uses: ilteoood/docker_buildx@1.1.0 uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with: with:
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 }} username: ${{ secrets.DOCKER_HUB_USER }}
imageName: rclone/rclone password: ${{ secrets.DOCKER_HUB_PASSWORD }}
platform: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6 - name: Build and publish image
publish: true uses: docker/build-push-action@v6
dockerHubUser: ${{ secrets.DOCKER_HUB_USER }} with:
dockerHubPassword: ${{ secrets.DOCKER_HUB_PASSWORD }} file: Dockerfile
context: .
platforms: linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/arm/v6
push: true
tags: |
rclone/rclone:latest
rclone/rclone:${{ steps.actual_patch_version.outputs.ACTUAL_PATCH_VERSION }}
rclone/rclone:${{ steps.actual_minor_version.outputs.ACTUAL_MINOR_VERSION }}
rclone/rclone:${{ steps.actual_major_version.outputs.ACTUAL_MAJOR_VERSION }}
build_docker_volume_plugin: build_docker_volume_plugin:
if: github.repository == 'rclone/rclone' if: github.repository == 'rclone/rclone'