update new way for cache(1) #11
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-acos | |
on: | |
push: | |
branches: | |
- keweizhan | |
jobs: | |
build: | |
name: deploy-acos | |
runs-on: self-hosted | |
steps: | |
- name: ssh | |
uses: fifsky/ssh-action@master | |
with: | |
host: ${{ secrets.STAGING_HOST }} | |
user: ${{ secrets.STAGING_USERNAME }} | |
key: ${{ secrets.STAGING_KEY }} | |
port: ${{ secrets.STAGING_PORT }} | |
args: "-tt" | |
command: | | |
cd /home/deploy/code-workout/ | |
docker compose pull | |
docker-compose down | |
docker-compose run web rake db:migrate | |
docker-compose run web rake db:seed | |
docker-compose run web rake assets:precompile | |
docker-compose up -d |