From 7fa94b9502d823388790964304388606e3ecdbe3 Mon Sep 17 00:00:00 2001 From: Grigory Bakunov Date: Sun, 11 Apr 2021 10:13:11 +0300 Subject: [PATCH 1/2] Update ci.yml first move to buildx for multiarch build --- .github/workflows/ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e9bda35..3a592ef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,16 @@ jobs: env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + id: buildx + uses: docker/setup-buildx-action@v1 + + - name: Available platforms + run: echo ${{ steps.buildx.outputs.platforms }} + - name: build and deploy image if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }} env: @@ -54,5 +64,6 @@ jobs: ref="$(echo ${GITHUB_REF} | cut -d'/' -f3)" echo GITHUB_REF - $ref echo ${GITHUB_PACKAGE_TOKEN} | docker login ghcr.io -u ${USERNAME} --password-stdin - docker build -t ghcr.io/${USERNAME}/reproxy:${ref} . - docker push ghcr.io/${USERNAME}/reproxy:${ref} + docker buildx build --push \ + --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 \ + -t ghcr.io/${USERNAME}/reproxy:${ref} . From 29fcbb90443253f51029184c3d31642c085d9a95 Mon Sep 17 00:00:00 2001 From: Grigory Bakunov Date: Sun, 11 Apr 2021 10:29:54 +0300 Subject: [PATCH 2/2] lowercase all the names --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a592ef..ef1f51f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,14 +45,14 @@ jobs: env: COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Set up QEMU + - name: set up QEMU uses: docker/setup-qemu-action@v1 - - name: Set up Docker Buildx + - name: set up Docker Buildx id: buildx uses: docker/setup-buildx-action@v1 - - name: Available platforms + - name: available platforms run: echo ${{ steps.buildx.outputs.platforms }} - name: build and deploy image