diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..4558cb6 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,20 @@ +name: Deploy api_yal +on: + push: + branches: + - main + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Pull latest main + run: | + cd /home/gaziz/artefacts/tp + git pull origin main + + - name: Rebuild api_yal and redeploy + run: | + cd /home/gaziz/artefacts/tp/main_dc + docker compose build api_yal --no-cache + docker compose up api_yal -d