Skip to content

Commit

Permalink
Merge pull request #830 from sallyom/workflow-trigger-model-builds
Browse files Browse the repository at this point in the history
allow update to model images
  • Loading branch information
Gregory-Pereira authored Dec 3, 2024
2 parents 7a7edc7 + 3ac66e2 commit 0ea02c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ jobs:
context: models

- name: Login to Container Registry
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
uses: redhat-actions/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Push image
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
uses: redhat-actions/[email protected]
with:
image: ${{ steps.build_image.outputs.image }}
Expand Down

0 comments on commit 0ea02c0

Please sign in to comment.