.gitlab-ci.yml 458 Bytes
Newer Older
fauno's avatar
ci/cd?  
fauno committed
1 2 3 4 5 6 7
image: ruby:2.6.5-alpine
stages:
  - deploy

deploy_application:
  stage: deploy
  script:
fauno's avatar
ci/cd!  
fauno committed
8
    - apk add --no-cache openssh-client
fauno's avatar
ci/cd?  
fauno committed
9 10
    - gem install bundler
    - bundle install --path=./vendor
fauno's avatar
fauno committed
11
    - eval $(ssh-agent)
fauno's avatar
ci/cd!  
fauno committed
12
    - echo -e "-----BEGIN OPENSSH PRIVATE KEY-----\n$SSH_PRIVATE_KEY\n-----END OPENSSH PRIVATE KEY-----" | ssh-add -
13 14
    - mkdir -p ~/.ssh
    - echo -e "Host *\nVerifyHostKeyDNS yes" > ~/.ssh/config
fauno's avatar
fauno committed
15
    - bundle exec cap production deploy