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
Renovate 8c48a8fa0a
All checks were successful
Build and push container image / build (push) Successful in 1m30s
Update appleboy/ssh-action action to v1.0.1 (#64)
Co-authored-by: Renovate <system@toast-server.net>
Co-committed-by: Renovate <system@toast-server.net>
2023-12-26 07:15:08 +00:00

23 lines
663 B
YAML

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@8f949198563a347a01c65ffc60399aef2b59d4ab # v1.0.1
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
passphrase: ${{ secrets.SSH_PASSPHRASE }}
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