change user #24
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: Deployment job | |
on: | |
push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: update the git repo | |
uses: garygrossgarten/github-action-ssh@release | |
with: | |
command: sudo systemctl restart gitpull | |
host: ${{ secrets.EC2_SERVER_HOST }} | |
username: ${{ secrets.EC2_USER }} | |
privateKey: ${{ secrets.EC2_CERT}} | |
- name: update the systemd services | |
uses: garygrossgarten/github-action-ssh@release | |
with: | |
command: sudo systemctl restart updateservices | |
host: ${{ secrets.EC2_SERVER_HOST }} | |
username: ${{ secrets.EC2_USER }} | |
privateKey: ${{ secrets.EC2_CERT}} | |
- name: ensure all dependencies are up to date | |
uses: garygrossgarten/github-action-ssh@release | |
with: | |
command: sudo systemctl restart pipinstall | |
host: ${{ secrets.EC2_SERVER_HOST }} | |
username: ${{ secrets.EC2_USER }} | |
privateKey: ${{ secrets.EC2_CERT}} | |
- name: restart the job board bot | |
uses: garygrossgarten/github-action-ssh@release | |
with: | |
command: sudo systemctl restart urlmon | |
host: ${{ secrets.EC2_SERVER_HOST }} | |
username: ${{ secrets.EC2_USER }} | |
privateKey: ${{ secrets.EC2_CERT}} |