diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8354078..3ac95a2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,11 +18,11 @@ jobs: REMOTE_HOST: ${{ secrets.REMOTE_HOST}} REMOTE_USER: ${{ secrets.REMOTE_USER}} DC_FILE: ${{ secrets.DOCKER_COMPOSE_FILE }} - DC_BUILD_FLAGS: "--no-cache" - DC_UP_FLAGS: "-d" run: | mkdir -p ~/.ssh echo "$DEPLOY_KEY" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa ssh-keyscan -H $REMOTE_HOST >> ~/.ssh/known_hosts - ssh -i ~/.ssh/id_rsa $REMOTE_USER@$REMOTE_HOST "docker compose -f $DC_FILE build $DC_BUILD_FLAGS && docker compose -f $DC_FILE up $DC_UP_FLAGS" \ No newline at end of file + CMD="docker compose -f $DC_FILE build --no-cache && docker compose -f $DC_FILE up -d" + echo $CMD + ssh -i ~/.ssh/id_rsa $REMOTE_USER@$REMOTE_HOST $CMD \ No newline at end of file