User Tools

Site Tools


gitlab_pipelines

documentation: https://docs.gitlab.com/ee/ci/quick_start/

TODO:

<HTML><ol></HTML>

  • docker in docker for building
  • ssh support with project variables and the whole ssh setup<HTML></ol></HTML>

example to conection:

deploy:

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"
gitlab_pipelines.txt · Last modified: 2024/04/11 14:23 by 127.0.0.1