Files
start/.gitea/workflows/deploy.yaml
Daniel Cortés 6822ba80d0
All checks were successful
CD for startPage / build (push) Successful in 8s
CD for startPage / deploy (push) Successful in 8s
No se pueden usar artefactos aun
2023-07-01 01:14:23 -04:00

40 lines
925 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: Display structure of downloaded files
run: ls -R
#
# run: |
# echo "${{ secrets.SERVER_PRIVATE_KEY }}" > private_key && chmod 600 private_key
# ssh -i private_key ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -p ${{ secrets.SSH_PORT || 22 }} '
# cd /home/ubuntu/CounterApp &&
# git checkout master &&
# git fetch --all &&
# git reset --hard origin/master &&
# git pull origin master &&
# docker-compose -f docker-compose.prod.yml up -d --build
# '