Files
go-receipt-tracker/.github/workflows/deploy.yml
Alex Savin 1aba36467a
Some checks failed
Deploy Project / deploy (push) Failing after 4s
Build and Push Docker Image / build-and-push (push) Has been cancelled
Testing / test (1.23.x, ubuntu-latest) (push) Has been cancelled
More changes
2025-02-11 17:17:57 -05:00

41 lines
920 B
YAML

name: Deploy Project
on:
push:
branches: [develop]
paths-ignore:
- 'README.md'
# - '.github/**'
pull_request:
branches: [develop]
paths-ignore:
- 'README.md'
# - '.github/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup SSH
shell: bash
run: |
whoiam
eval `ssh-agent -s`
mkdir -p /home/runner/.ssh/
touch /home/runner/.ssh/id_rsa
echo -e "${{secrets.SSH_KEY}}" > /home/runner/.ssh/id_rsa
chmod 700 /home/runner/.ssh/id_rsa
ls -la /home/runner/.ssh/
ssh-keyscan -t rsa,dsa,ecdsa,ed25519 ${{secrets.SSH_HOST}} >> /home/runner/.ssh/known_hosts
- name: SSH to the Prod env
shell: bash
run: |
ssh -tt -o StrictHostKeyChecking=no gitea@${{secrets.SSH_HOST}}
whoiam
#