Files
agologum/.gitea/workflows/deploy-client.yaml
Blitblank 46f0b16ff3
Some checks failed
Build and Deploy Frontend / build-and-deploy (push) Failing after 3s
Build and Deploy API / build-and-deploy (push) Has been cancelled
separate the docker-compose files
2026-02-28 15:51:09 -06:00

36 lines
889 B
YAML

name: Build and Deploy Frontend
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:
- uses: actions/checkout@v3
- name: Login to 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-client:latest ./client
- name: Push
run: |
docker push git.vxbard.net/homeburger/agologum-client:latest
- name: Deploy
run: |
docker compose -f docker-compose.prod.yml pull agologum-client
docker compose -f docker-compose.prod.yml up -d agologum-client