From 221ad62530631af0d4002a385dd23ba268f577b8 Mon Sep 17 00:00:00 2001 From: JerryHopper Date: Mon, 5 Jul 2021 23:10:28 +0200 Subject: [PATCH 1/2] Create multiarch.yml --- .github/workflows/multiarch.yml | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/multiarch.yml diff --git a/.github/workflows/multiarch.yml b/.github/workflows/multiarch.yml new file mode 100644 index 0000000..2e7f547 --- /dev/null +++ b/.github/workflows/multiarch.yml @@ -0,0 +1,38 @@ +name: ci +on: [pushx] +jobs: + multi: + runs-on: ubuntu-latest + env: + APP_VERSION: 0.0.1 + steps: + - + name: identify + run: echo ${{ env.APP_VERSION }} + - + name: Checkout + 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 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + file: ./Dockerfile + build-args: APP_VERSION=${{ env.APP_VERSION }} + platforms: linux/arm64,linux/amd64 + push: true + tags: | + ${{ secrets.DOCKERHUB_REPO }}:latest + ${{ secrets.DOCKERHUB_REPO }}:${{ env.APP_VERSION }} From 0c8cccb3cea5eac6ef8666a48742cf8b992197e2 Mon Sep 17 00:00:00 2001 From: JerryHopper Date: Mon, 5 Jul 2021 23:25:36 +0200 Subject: [PATCH 2/2] Update multiarch.yml --- .github/workflows/multiarch.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/multiarch.yml b/.github/workflows/multiarch.yml index 2e7f547..4c5eb68 100644 --- a/.github/workflows/multiarch.yml +++ b/.github/workflows/multiarch.yml @@ -1,5 +1,5 @@ name: ci -on: [pushx] +on: [push] jobs: multi: runs-on: ubuntu-latest @@ -29,10 +29,21 @@ jobs: uses: docker/build-push-action@v2 with: context: . - file: ./Dockerfile + file: ./1.6/Dockerfile build-args: APP_VERSION=${{ env.APP_VERSION }} platforms: linux/arm64,linux/amd64 push: true tags: | - ${{ secrets.DOCKERHUB_REPO }}:latest - ${{ secrets.DOCKERHUB_REPO }}:${{ env.APP_VERSION }} + ${{ secrets.DOCKERHUB_REPO }}:1.6 + + - + name: Build and push + uses: docker/build-push-action@v2 + with: + context: . + file: ./1.7/Dockerfile + build-args: APP_VERSION=${{ env.APP_VERSION }} + platforms: linux/arm64,linux/amd64 + push: true + tags: | + ${{ secrets.DOCKERHUB_REPO }}:1.7