Update .Dockerfile #25
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: Push to EC2 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-push: | |
runs-on: self-hosted | |
steps: | |
- name: Pull Latest Changes | |
run: | | |
pwd | |
cd ~/sai-web3 | |
export PATH=/usr/local/bin:$PATH | |
git pull | |
docker-compose down | |
docker system prune -f | |
docker-compose up --build -d | |
docker system prune -f | |