AliceClass/.gitea/workflows/ssh_build.yml

28 lines
850 B
YAML
Raw Normal View History

2024-11-24 12:14:04 -03:00
name: Deploy
2024-07-04 17:18:46 -03:00
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
2024-11-24 12:14:04 -03:00
on: [push]
2024-07-04 17:18:46 -03:00
jobs:
2024-07-08 20:05:49 -03:00
Deploy:
runs-on: ubuntu-latest
2024-07-04 17:18:46 -03:00
steps:
2024-11-24 12:14:04 -03:00
- name: Deploy to alice
uses: https://git.alice.ufsj.edu.br/Carneiro/alice-sites-pull-action@main
with:
2024-11-24 15:15:12 -03:00
dirname: aliceclass
src_dir: /var/www/src
dest_dir: /var/www/html
2024-07-08 20:05:49 -03:00
2024-11-24 12:14:04 -03:00
# - name: Deploy to Server
# run: |
# echo "${{ secrets.SCP_KEY_ALICE }}" > /tmp/ssh_private_key
# chmod 600 /tmp/ssh_private_key
# ssh -o "StrictHostKeyChecking no" -i /tmp/ssh_private_key act_runner@alice.ufsj.edu.br -p ${{ secrets.SSH_PORT_ALICE }} << 'EOF'
# cd /var/www/src/AliceClass
# git pull origin main
# bundle install
# EOF
2024-07-08 20:05:49 -03:00
2024-11-24 12:14:04 -03:00
# - run: echo "🍏 This job's status is ${{ job.status }}."