Skip to content

Commit

Permalink
Modify the GitHub Actions workflow to build the image only when chang…
Browse files Browse the repository at this point in the history
…es are made to requirements.txt, .github/workflows/main.yml, and Dockerfile.
  • Loading branch information
yym68686 committed Sep 17, 2023
1 parent de7f8b9 commit 79d3d60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish Docker Image

on:
push:
branches: [ main ]
release:
types: [ published ]
paths:
- Dockerfile.build
- requirements.txt
- .github/workflows/main.yml

jobs:
build-and-push:
Expand Down

0 comments on commit 79d3d60

Please sign in to comment.