Publish latest infrastructure #54
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will trigger the remote ssh script to | |
# restart infrastructure with the latest artefacts version | |
on: workflow_dispatch | |
name: Publish latest infrastructure | |
jobs: | |
deploy: | |
name: publish-infra | |
runs-on: self-hosted | |
steps: | |
- name: Publish via ssh | |
uses: appleboy/ssh-action@v0.1.10 | |
with: | |
host: ${{ secrets.REMOTE_HOST }} | |
username: ${{ secrets.REMOTE_USER }} | |
key: ${{ secrets.SSH_PRIVATE_KEY}} | |
script: sh /opt/open4goods/bin/publish-infra.sh | |