Only compile the UI docker image when there's some updates in the www folder

This commit is contained in:
2022-04-22 16:49:30 +10:00
parent 1705b1cabd
commit ec57a89c4f
+1
View File
@@ -34,6 +34,7 @@ jobs:
docker push docker.pkg.github.com/wahyd4/badger/badger:v0.1.$GITHUB_RUN_NUMBER
-
name: Build and push UI docker image
if: ! ${{ git diff --quiet HEAD~1 HEAD -- www }}
run: |
cd www
docker build . --tag docker.pkg.github.com/wahyd4/badger/ui:v0.1.$GITHUB_RUN_NUMBER