18 lines
637 B
YAML
18 lines
637 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/deploy/L6l4ubqqBxclqPDg60WD-' |