Skip to content

Commit

Permalink
Do run workflow on every push
Browse files Browse the repository at this point in the history
  • Loading branch information
strifel committed Nov 8, 2024
1 parent 9d5bceb commit abed3c3
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: docker

on:
push:
branches:
- 'main'
on: ["push", "release"]

jobs:
docker:
Expand All @@ -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

0 comments on commit abed3c3

Please sign in to comment.