22 lines
788 B
YAML
22 lines
788 B
YAML
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' |