Deploy NYC Mesh Status Page #5
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
name: Deploy NYC Mesh Status Page | |
on: | |
workflow_run: | |
workflows: ["Publish Docker Image"] | |
types: | |
- completed | |
jobs: | |
deploy_nyc_mesh_status_page: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install SSH key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.ANDY_BOX_KEY }} | |
name: id_ed25519 # optional | |
known_hosts: ${{ secrets.ANDY_KNOWN_HOSTS }} | |
#config: ${{ secrets.CONFIG }} # ssh_config; optional | |
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail) | |
- name: Pull new Docker image | |
run: ssh ubuntu@status.mesh.nycmesh.net "cd /home/ubuntu/cursed-status-page-live && bash update_and_restart.sh" |