Files
agologum/.gitea/workflows/deploy-api.yaml
Blitblank 87768ffc21
Some checks failed
Build and Deploy API / build-and-deploy (push) Failing after 1s
Build and Deploy Frontend / build-and-deploy (push) Failing after 0s
when in doubt ubuntu:latest
2026-02-28 15:13:55 -06:00

35 lines
861 B
YAML

name: Build and Deploy API
on:
push:
branches:
- main
- feature/ci-cd
jobs:
build-and-deploy:
runs-on: debian12
container:
image: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Validate Registry
run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login git.bxvard.net -u ${{ secrets.REGISTRY_USERNAME }} --password-stdin
- name: Build Docker image
run: |
docker build -t git.bxvard.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.prod.yaml pull agologum-api
docker compose -f docker-compose.prod.yaml up -d agologum-api