documentation: https://docs.gitlab.com/ee/ci/quick_start/ TODO:
image: docker:19.03.12
services:
- docker:19.03.12-dind
stage: deploy
variables:
TARGET_HOST: "ssh -o StrictHostKeyChecking=no -i $SSH_KEY users@host"
before_script:
- chmod 400 $SSH_KEY
script:
- ls
- apk update && apk add openssh
- ssh -o StrictHostKeyChecking=no -i $SSH_KEY users@host "command"