Skip to content

Commit

Permalink
push to container registry on dispatch too
Browse files Browse the repository at this point in the history
  • Loading branch information
wkelly17 committed Oct 14, 2024
1 parent 7bc181e commit 695690c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
name: Docker

on:
push:
branches:
- default
pull_request:
branches:
- default
workflow_dispatch:
on: [push, pull_request, workflow_dispatch]

jobs:
#test building image for PR without push
Expand All @@ -25,7 +18,7 @@ jobs:
#build and push image
push:
runs-on: ubuntu-20.04
if: github.event_name == 'push'
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
needs: [test]

steps:
Expand Down

0 comments on commit 695690c

Please sign in to comment.