update action file
All checks were successful
Build and push / changes (push) Successful in 7s
Build and push / Lint-Python (push) Successful in 11s
Build and push / Build-and-Push-Docker (push) Successful in 47s
Build and push / sync-argocd-app (push) Successful in 9s

This commit is contained in:
Luke Robles 2024-05-02 19:38:58 -07:00
parent 49f1475de0
commit 3bc4b8a6b8
4 changed files with 6 additions and 1 deletions

7
.gitea/workflows/build-and-push.yaml Executable file → Normal file
View File

@ -1,5 +1,5 @@
name: Build and push
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
run-name: ${{ gitea.actor }} Triggered a new run 🚀
on: [push]
jobs:
@ -41,6 +41,7 @@ jobs:
uv pip install black --system --quiet
black app --check --fast
if: steps.filter.outputs.python_files == 'true'
Build-and-Push-Docker:
needs: changes
if: ${{ needs.changes.outputs.python_files == 'true' }}
@ -51,9 +52,12 @@ jobs:
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Check out repository code
uses: actions/checkout@v4
- name: Build and push
if: github.event_name != 'pull_request'
uses: docker/build-push-action@v2
with:
context: .
@ -61,6 +65,7 @@ jobs:
tags: |
ldooks/dragon-bot:latest
ldooks/dragon-bot:${{ gitea.run_id }}
sync-argocd-app:
needs: [changes, Build-and-Push-Docker]
if: ${{ needs.changes.outputs.python_files == 'true' }}

0
Dockerfile-test-env Executable file → Normal file
View File

0
app/bot.py Executable file → Normal file
View File

0
app/cogs/animal_functions.py Executable file → Normal file
View File