Skip to content

Commit

Permalink
Auto deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric-Guo committed Oct 21, 2024
1 parent f997f71 commit 4b69745
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ before_script:

stages:
- test
- deploy

test:
stage: test
Expand All @@ -54,3 +55,27 @@ test:
only:
- main
- merge_requests

deploy_production:
stage: deploy
cache:
- key:
files:
- Gemfile.lock
paths:
- vendor/ruby
- key:
files:
- yarn.lock
paths:
- .yarn-cache/
script:
- mkdir ~/.ssh
- mv "$SSH_ID_RSA" ~/.ssh/id_rsa
- mv "$SSH_CONFIG_FILE" ~/.ssh/config
- bundle exec cap staging deploy
environment:
name: production
url: https://high-five.thape.com.cn
only:
- main

0 comments on commit 4b69745

Please sign in to comment.