Files
start/.gitea/workflows/deploy.yaml
Daniel Cortés c1f2f5486f
All checks were successful
CD for startPage / build (push) Successful in 9s
CD for startPage / deploy (push) Successful in 10s
Probando logear /
2023-07-01 01:29:41 -04:00

31 lines
658 B
YAML

name: CD for startPage
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run build step
run: ./build.sh
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run build step
run: ./build.sh
- name: Configure Server
run: |
echo "${{ secrets.SERVER_PRIVATE_KEY }}" > private_key && chmod 600 private_key
ssh -o StrictHostKeyChecking=no -i private_key ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -p ${{ secrets.SSH_PORT || 22 }} '
ls -al /
'