diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml old mode 100755 new mode 100644 index 2be2b55b..0f1aef61 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -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' }} diff --git a/Dockerfile-test-env b/Dockerfile-test-env old mode 100755 new mode 100644 diff --git a/app/bot.py b/app/bot.py old mode 100755 new mode 100644 diff --git a/app/cogs/animal_functions.py b/app/cogs/animal_functions.py old mode 100755 new mode 100644