From 1c8eafa8f5ab216d1b0cc5601830fd8a360a728d Mon Sep 17 00:00:00 2001 From: BuckarooBanzay Date: Tue, 1 Feb 2022 15:31:42 +0100 Subject: [PATCH] push image on master/latest --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6fd7f90..3938b96 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -49,9 +49,13 @@ jobs: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Push image + if: success() && github.ref == 'refs/heads/master' + run: docker push buckaroobanzay/minetest:latest + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 - if: success() && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master') + if: success() && startsWith(github.ref, 'refs/tags/') with: version: latest args: release --rm-dist