From 9a61ee753050aa90b8eb24262d3694bca4df6b66 Mon Sep 17 00:00:00 2001 From: Athou Date: Thu, 27 Apr 2023 08:36:04 +0200 Subject: [PATCH] create a 'master' docker tag for the latest master version --- .github/workflows/build.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6f52a978..f46bb7b8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,18 +40,28 @@ jobs: # Docker - name: Login to Container Registry - if: ${{ github.ref_type == 'tag' && matrix.java == '8' }} + if: ${{ matrix.java == '8' }} uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Docker build and push + - name: Docker build and push tag uses: docker/build-push-action@v4 + if: ${{ matrix.java == '8' && github.ref_type == 'tag' }} with: context: . + push: true platforms: linux/amd64,linux/arm/v7 - push: ${{ github.ref_type == 'tag' && matrix.java == '8' }} tags: | athou/commafeed:latest athou/commafeed:${{ github.ref_name }} + + - name: Docker build and push master + uses: docker/build-push-action@v4 + if: ${{ matrix.java == '8' && github.ref_name == 'master' }} + with: + context: . + push: true + platforms: linux/amd64,linux/arm/v7 + tags: athou/commafeed:master