toast
5cc8feec54
All checks were successful
Build and push container image / build (push) Successful in 38s
23 lines
663 B
YAML
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@55dabf81b49d4120609345970c91507e2d734799 # v1.0.0
|
|
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
|