Fetch first #8
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
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: self-hosted | |
steps: | |
- name: Pull | |
run: cd /home/mustyoshi/Github/congress-dev && GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git fetch && GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no" git checkout ${GITHUB_SHA} | |
- name: Build containers | |
run: cd /home/mustyoshi/Github/congress-dev && docker-compose -f .docker/docker-compose.yml -f .docker/docker-compose.prod.yml build | |
- name: Deploy | |
run: cd /home/mustyoshi/Github/congress-dev && bash start_prod.sh |