create docker image ci/cd
All checks were successful
Build and Deploy Client / build-and-deploy (push) Successful in 29s
All checks were successful
Build and Deploy Client / build-and-deploy (push) Successful in 29s
This commit is contained in:
@@ -1,2 +1,42 @@
|
||||
|
||||
name: "Build and Deploy Client"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user