First build
Some checks failed
Client Admin / build-deploy (push) Failing after 8s
Client Client / build-deploy (push) Failing after 3s
Client Registration / build-deploy (push) Failing after 20s
Client Tech / build-deploy (push) Failing after 1s
Client Home / build-deploy (push) Successful in 14s
Some checks failed
Client Admin / build-deploy (push) Failing after 8s
Client Client / build-deploy (push) Failing after 3s
Client Registration / build-deploy (push) Failing after 20s
Client Tech / build-deploy (push) Failing after 1s
Client Home / build-deploy (push) Successful in 14s
This commit is contained in:
35
.gitea/workflows/client-tech.yml
Normal file
35
.gitea/workflows/client-tech.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Client Tech
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
paths:
|
||||
- 'Client-Tech/**'
|
||||
- '.gitea/workflows/client-tech.yml'
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: host
|
||||
env:
|
||||
NGINX_HOST: 192.168.77.227
|
||||
NGINX_PATH: /var/www/positivespend/websites/tech
|
||||
SSH_KEY: ~/.ssh/gitea_runner
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: Client-Tech
|
||||
run: npm ci
|
||||
|
||||
- name: Build
|
||||
working-directory: Client-Tech
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy to Nginx server
|
||||
run: |
|
||||
rsync -az --delete \
|
||||
-e "ssh -i ${{ env.SSH_KEY }} -o StrictHostKeyChecking=no" \
|
||||
Client-Tech/dist/ \
|
||||
root@${{ env.NGINX_HOST }}:${{ env.NGINX_PATH }}/
|
||||
Reference in New Issue
Block a user