push image on master/latest

This commit is contained in:
BuckarooBanzay 2022-02-01 15:31:42 +01:00
parent a03fb655a7
commit 1c8eafa8f5

View File

@ -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