ci: simplify workflows - deploy on main push, CI on PR only
Some checks failed
Deploy / deploy (push) Failing after 1s
Some checks failed
Deploy / deploy (push) Failing after 1s
This commit is contained in:
11
.github/workflows/deploy.yml
vendored
11
.github/workflows/deploy.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Deploy API-Ubigeo
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
@@ -7,14 +7,13 @@ on:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Copy source to server
|
||||
- name: Sync source
|
||||
run: |
|
||||
rsync -av --delete \
|
||||
rsync -a --delete \
|
||||
--exclude='.git' \
|
||||
--exclude='node_modules' \
|
||||
--exclude='dist' \
|
||||
@@ -25,6 +24,4 @@ jobs:
|
||||
run: bash /home/deployer/deploy-ubigeo.sh
|
||||
|
||||
- name: Health check
|
||||
run: |
|
||||
sleep 10
|
||||
curl -f https://api-ubigeo.darkcodex.dev/api/v1/health || exit 1
|
||||
run: curl -f https://api-ubigeo.darkcodex.dev/api/v1/health
|
||||
|
||||
Reference in New Issue
Block a user