Skip to content

Commit

Permalink
build.yml: only build on push to main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsga authored May 25, 2024
1 parent 14de0ab commit a71ca05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Build and Push to GitHub Container Registry with buildah
on: [push, workflow_dispatch]
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
name: Build and push image
Expand All @@ -23,4 +27,4 @@ jobs:
username: fsr
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Print the image url
run: echo "Image pushed to ${{ steps.push.outputs.registry-paths }}"
run: echo "Image pushed to ${{ steps.push.outputs.registry-paths }}"

0 comments on commit a71ca05

Please sign in to comment.