Files
philosophish/.gitea/workflows/deploy-client.yaml
Blitblank a95e61879d
All checks were successful
Build and Deploy Client / build-and-deploy (push) Successful in 29s
create docker image ci/cd
2026-08-25 21:51:52 -05:00

43 lines
1.1 KiB
YAML

name: Build and Deploy Client
run-name: "${{ gitea.event.head_commit.message }}: Deploy Client"
on:
push:
#branches:
# - main
paths:
- "client/**"
- ".gitea/workflows/deploy-client.yaml"
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
# needs this in order to push to the registry
- 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/phish-client:latest ./client
- name: Push
run: |
docker push git.vxbard.net/homeburger/phish-client:latest
- name: Deploy
run: |
docker compose -f ./client/docker-compose.prod.yaml pull phish-client
docker compose -f ./client/docker-compose.prod.yaml up -d --force-recreate phish-client