From b0a27d79f72f6ce63392940286fc818fd0ef9e5e Mon Sep 17 00:00:00 2001 From: HubbeKing Date: Sun, 17 Oct 2021 19:04:47 +0300 Subject: [PATCH] Correct tag syntax and only push latest on a push to master --- .github/workflows/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d230cd3..0c0107e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,5 +52,13 @@ jobs: with: context: ./${{ matrix.component }} file: Dockerfile - tags: ghcr.io/ekimekim/wubloader-${{ matrix.component }}:$TAG,ghcr.io/ekimekim/wubloader-${{ matrix.component }}:latest + tags: ghcr.io/ekimekim/wubloader-${{ matrix.component }}:${{ env.TAG }} push: true + + - name: Build ${{ matrix.component }} latest + uses: docker/build-push-action@v2.7.0 + if: github.event_name != 'pull_request' and github.ref == 'refs/heads/master' + with: + context: ./${{ matrix.component }} + file: Dockerfile + tags: ghcr.io/ekimekim/wubloader-${{ matrix.component }}:latest