update action file
This commit is contained in:
parent
2186452225
commit
5bf9cba9cf
7
.gitea/workflows/build-and-push.yaml
Executable file → Normal file
7
.gitea/workflows/build-and-push.yaml
Executable file → Normal 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
0
Dockerfile-test-env
Executable file → Normal file
0
app/bot.py
Executable file → Normal file
0
app/bot.py
Executable file → Normal file
0
app/cogs/animal_functions.py
Executable file → Normal file
0
app/cogs/animal_functions.py
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user