Deploy production image #74
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 production image | |
# TODO add workflow run | |
# To use workflow_run the file needs to be on master -> add in new pr | |
on: | |
workflow_run: | |
workflows: ['Frontend-build and push to production'] | |
types: | |
- completed | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: login to server and launch newest image | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.SSH_KEY }} | |
script: ./pull-and-run-frontend.sh |