From 9b4a47d7aa678cd7099fe1983f4a2c840060221c Mon Sep 17 00:00:00 2001 From: Mattia Vidoni Date: Thu, 11 Jan 2024 12:01:23 +0100 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 32 ++++++++++++++---------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 561fabd..41ac4ef 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -18,28 +18,26 @@ jobs: echo "builddate=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT id: version # this is used on variable path - - name: Checkout - uses: actions/checkout@v3 - - - name: Login to Docker Hub - uses: docker/login-action@v2 + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + 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: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - with: - platforms: 'arm64,arm' - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Build and push - uses: docker/build-push-action@v3 + + - name: Build and push + uses: docker/build-push-action@v5 with: context: . - file: ./Dockerfile + platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7 push: true tags: | ${{ secrets.DOCKER_HUB_USERNAME }}/qbittorrent-bot:${{ steps.version.outputs.builddate }}