From b5d20e3fe66f473d91d71927ee4d8d617afbc999 Mon Sep 17 00:00:00 2001 From: John Hollowell Date: Fri, 16 Jul 2021 21:01:54 +0000 Subject: [PATCH 1/2] Add multiple architechture build support Add auto builds for x86, x86_64, and arm64 --- .github/workflows/docker.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 52d25fa..f1559e3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,6 +13,9 @@ jobs: - name: 'Checkout GitHub Action' uses: actions/checkout@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 @@ -37,4 +40,5 @@ jobs: uses: docker/build-push-action@v2 with: push: true + platforms: linux/amd64,linux/arm64,linux/386 tags: esanchezm/prometheus-qbittorrent-exporter:latest,esanchezm/prometheus-qbittorrent-exporter:${{ steps.extract_branch.outputs.tag }} From cfe62f81155ab505789528ecda232205a80b03f7 Mon Sep 17 00:00:00 2001 From: John Hollowell Date: Fri, 16 Jul 2021 21:10:05 +0000 Subject: [PATCH 2/2] Remove hardcoded username in docker tags --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f1559e3..49e5a54 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -41,4 +41,4 @@ jobs: with: push: true platforms: linux/amd64,linux/arm64,linux/386 - tags: esanchezm/prometheus-qbittorrent-exporter:latest,esanchezm/prometheus-qbittorrent-exporter:${{ steps.extract_branch.outputs.tag }} + tags: ${{ secrets.REGISTRY_USERNAME }}/prometheus-qbittorrent-exporter:latest,${{ secrets.REGISTRY_USERNAME }}/prometheus-qbittorrent-exporter:${{ steps.extract_branch.outputs.tag }}