From 4e332cb0d34dd67a8a437ac317d76e710532fd9c Mon Sep 17 00:00:00 2001 From: JasonFraser Date: Sat, 1 Aug 2026 19:57:03 -0400 Subject: [PATCH] Add .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..30f07cc --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,22 @@ +name: Build and Push +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Log in to Gitea registry + run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.bettertend.net -u JasonFraser --password-stdin + - name: Build image + run: docker build -t git.bettertend.net/JasonFraser/cartaddicts:latest . + - name: Push image + run: docker push git.bettertend.net/JasonFraser/cartaddicts:latest + - name: Trigger Dokploy deployment + run: | + curl -X POST 'https://dokploy.undodesigns.com/api/application.deploy' \ + -H 'accept: application/json' \ + -H "x-api-key: ${{ secrets.DOKPLOY_API_KEY }}" \ + -H 'Content-Type: application/json' \ No newline at end of file