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