Skip to content

Commit

Permalink
ci: allow job to be ran manually
Browse files Browse the repository at this point in the history
  • Loading branch information
davmacario committed Oct 14, 2024
1 parent fbde4eb commit 5d17c22
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish_image.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---

name: "Publish Docker Image"

permissions:
Expand All @@ -14,13 +13,14 @@ env:
IMAGE_NAME: "${{ github.repository }}:latest"

on:
push: # Only run after merge to main, when these files change
push: # Only run after merge to main, when these files change
branches: [master, main]
paths:
- "${{ env.OAK_MODULE_DIR }}/Dockerfile"
- "${{ env.OAK_MODULE_DIR }}/requirements.txt"
- "${{ env.OAK_MODULE_DIR }}/vision_webserver.py"
- ".github/workflows/publish_image.yaml" # This file
- ".github/workflows/publish_image.yaml" # This file
workflow_dispatch: true

jobs:
build:
Expand All @@ -43,5 +43,4 @@ jobs:
- name: Push Docker Image
run: docker push ${{ env.IMAGE_NAME }}

# EOF

0 comments on commit 5d17c22

Please sign in to comment.