This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
Corn-Utility/.gitea/workflows/deploy_container.yml

23 lines
663 B
YAML
Raw Normal View History

name: Deploy to production
on:
registry_package:
types: [published]
jobs:
deploy:
runs-on: ubuntu-22.04-node
steps:
- name: SSH into Docker Host
uses: appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
2023-10-19 19:19:10 -04:00
passphrase: ${{ secrets.SSH_PASSPHRASE }}
2023-10-19 18:39:13 -04:00
key: ${{ secrets.SSH_PRVKEY }}
port: ${{ secrets.SSH_PORT }}
script: |
cd corn-util && \
docker compose pull && \
docker compose up -d --remove-orphans && \
docker image prune -f