Skip to content

▶ Prod - Publish latest infrastructure #4

▶ Prod - Publish latest infrastructure

▶ Prod - Publish latest infrastructure #4

# This workflow will trigger the remote ssh script to
# restart infrastructure with the latest artefacts version
on: workflow_dispatch
name: Prod - Publish latest infrastructure
jobs:
deploy:
name: prod-publish-infra
runs-on: self-hosted
steps:
- name: Publish via ssh
uses: appleboy/ssh-action@v1.0.2
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY}}
script: sh /opt/open4goods/bin/publish-infra.sh