Add .gitea/workflows/deploy.yml
Build and Push / build (push) Failing after 2m23s
Details
Build and Push / build (push) Failing after 2m23s
Details
This commit is contained in:
commit
4e332cb0d3
|
|
@ -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'
|
||||
Loading…
Reference in New Issue