add step to check if docker file changed
All checks were successful
Build and push / changes (push) Successful in 3s
Build and push / Lint-Python (push) Has been skipped
Build and push / Build-and-Push-Docker (push) Has been skipped
Build and push / sync-argocd-app (push) Has been skipped
Build and push / post-status-to-discord (push) Has been skipped
All checks were successful
Build and push / changes (push) Successful in 3s
Build and push / Lint-Python (push) Has been skipped
Build and push / Build-and-Push-Docker (push) Has been skipped
Build and push / sync-argocd-app (push) Has been skipped
Build and push / post-status-to-discord (push) Has been skipped
This commit is contained in:
parent
1b46c45d9e
commit
32b26dcc24
@ -32,6 +32,8 @@ jobs:
|
||||
filters: |
|
||||
python_files:
|
||||
- 'app/**/*.py'
|
||||
docker_file:
|
||||
- 'Dockerfile'
|
||||
- name: install UV
|
||||
run: |
|
||||
pip install uv --quiet
|
||||
@ -43,7 +45,7 @@ jobs:
|
||||
if: steps.filter.outputs.python_files == 'true'
|
||||
Build-and-Push-Docker:
|
||||
needs: [changes, Lint-Python]
|
||||
if: ${{ needs.changes.outputs.python_files == 'true' }}
|
||||
if: ${{ needs.changes.outputs.python_files == 'true' || needs.changes.outputs.docker_file == 'true' }}
|
||||
steps:
|
||||
- name: Login to Docker Hub
|
||||
if: github.event_name != 'pull_request'
|
||||
@ -64,7 +66,7 @@ jobs:
|
||||
ldooks/dragon-bot:${{ gitea.run_id }}
|
||||
sync-argocd-app:
|
||||
needs: [changes, Build-and-Push-Docker]
|
||||
if: ${{ needs.changes.outputs.python_files == 'true' }}
|
||||
if: ${{ needs.Build-and-Push-Docker.result == 'success' }}
|
||||
steps:
|
||||
- name: Sync app in ArgoCD
|
||||
uses: clowdhaus/argo-cd-action/@main
|
||||
@ -74,7 +76,7 @@ jobs:
|
||||
options: --insecure --server 192.168.1.205 --auth-token ${{ secrets.ARGOCD_TOKEN }} set dragon-bot --helm-set image.tag=${{ gitea.run_id }}
|
||||
post-status-to-discord:
|
||||
needs: [changes, Build-and-Push-Docker]
|
||||
if: ${{ needs.changes.outputs.python_files == 'true' }}
|
||||
if: ${{ needs.Build-and-Push-Docker.result == 'success' }}
|
||||
steps:
|
||||
- name: Post status to discord
|
||||
if: github.event_name != 'pull_request'
|
||||
|
Loading…
x
Reference in New Issue
Block a user