From abed3c3e5f388d6294e24cd7b6b9a0acb34759f4 Mon Sep 17 00:00:00 2001 From: strifel Date: Mon, 28 Oct 2024 06:41:14 +0100 Subject: [PATCH] Do run workflow on every push --- .github/workflows/docker.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d9b8d1e..7793e75 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -1,9 +1,6 @@ name: docker -on: - push: - branches: - - 'main' +on: ["push", "release"] jobs: docker: @@ -20,10 +17,16 @@ jobs: username: ${{github.actor}} password: ${{secrets.GITHUB_TOKEN}} - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: ghcr.io/strifel/mampf.link:beta-${{github.ref_name}} + - name: Build and push latest uses: docker/build-push-action@v6 with: push: true tags: ghcr.io/strifel/mampf.link:latest + if: ${{github.event_name == 'release'}} permissions: packages: write \ No newline at end of file