Skip to content

update new way for cache(1) #11

update new way for cache(1)

update new way for cache(1) #11

Workflow file for this run

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