try to disable cache #10
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 # Run database migrations | |
docker-compose run web rake db:seed # Seed the database with new data | |
docker-compose run web rake assets:precompile # Precompile updated JS/CSS | |
docker-compose up -d |