Files
calminer/.gitea/workflows/deploy.yml
zwitschi 0e51a3883d
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 5s
Deploy to Server / deploy (push) Failing after 2s
Run Tests / test (push) Has been cancelled
fix: Update registry secrets in build and deploy workflows for consistency
2025-10-23 17:39:47 +02:00

22 lines
678 B
YAML

name: Deploy to Server
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: SSH and deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
docker pull ${{ secrets.REGISTRY_REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/calminer:latest
docker stop calminer || true
docker rm calminer || true
docker run -d --name calminer -p 8000:8000 ${{ secrets.REGISTRY_REGISTRY }}/${{ secrets.REGISTRY_USERNAME }}/calminer:latest