Add .gitea/workflows/deploy.yml
Build and Push / build (push) Failing after 2m23s Details

This commit is contained in:
JasonFraser 2026-08-01 19:57:03 -04:00
commit 4e332cb0d3
1 changed files with 22 additions and 0 deletions

View File

@ -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'