push after build

This commit is contained in:
BuckarooBanzay 2022-02-01 15:34:00 +01:00
parent 917ab9be27
commit 1dd0f05b09

View File

@ -48,10 +48,6 @@ 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/')
@ -59,4 +55,8 @@ jobs:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push image
if: success() && github.ref == 'refs/heads/master'
run: docker push minetestmapserver/mapserver:latest