Files
timerx/.gitlab-ci.yml
T
2023-11-11 08:50:10 +00:00

22 lines
501 B
YAML

stages:
- deploy
before_script:
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
deploy_job:
stage: deploy
script:
- git remote remove github || true
- git remote add github git@github.com:yun-ink/timerx.git
- git remote -v
- git checkout master
- git branch
- git push github master
only:
- master
- tags