Files
agologum/.gitea/workflows/deploy-api.yaml
Blitblank 3875e11660
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 4s
Build and Deploy Frontend / build-and-deploy (push) Successful in 3s
dont remove orphans
2026-02-28 16:28:04 -06:00

38 lines
941 B
YAML

name: Build and Deploy API
on:
push:
branches:
- main
- feature/ci-cd
jobs:
build-and-deploy:
runs-on: debian12
container:
image: git.vxbard.net/homeburger/bard-cpp-builder:1.0
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Validate Registry
run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.vxbard.net \
-u ${{ secrets.REGISTRY_USERNAME }} \
--password-stdin
- name: Build image
run: |
docker build -t git.vxbard.net/homeburger/agologum-api:latest ./api
- name: Push image
run: |
docker push git.vxbard.net/homeburger/agologum-api:latest
- name: Deploy container
run: |
docker compose -f docker-compose-api.prod.yaml pull agologum-api
docker compose -f docker-compose-api.prod.yaml up -d --force-recreate agologum-api