From 3bc4b8a6b8e1319a984d4b7f67032c26537ed870 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Thu, 2 May 2024 19:38:58 -0700 Subject: [PATCH] update action file --- .gitea/workflows/build-and-push.yaml | 7 ++++++- Dockerfile-test-env | 0 app/bot.py | 0 app/cogs/animal_functions.py | 0 4 files changed, 6 insertions(+), 1 deletion(-) mode change 100755 => 100644 .gitea/workflows/build-and-push.yaml mode change 100755 => 100644 Dockerfile-test-env mode change 100755 => 100644 app/bot.py mode change 100755 => 100644 app/cogs/animal_functions.py 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