default: image: debian:11 services: - name: docker:24.0.7-dind alias: docker build: image: docker:23.0.3-cli stage: build variables: DOCKER_TLS_VERIFY: 1 DOCKER_CERT_PATH: /certs/client DOCKER_PATH: './front/' before_script: - until docker info; do sleep 1;ps aux; done - apk add --no-cache make - apk add --no-cache bash script: - make html artifacts: paths: - build/html/ deploy: image: alpine services: [] stage: deploy script: - apk add --no-cache rsync openssh - mkdir -p ~/.ssh - echo "${SSH_KEY}" > ~/.ssh/id_dsa - chmod 600 ~/.ssh/id_dsa - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config - rsync -ravO --rsync-path="sudo rsync" build/html/ ${SSH_USERNAME}@${SSH_HOST}:/var/www/${HTTP_DOMAIN}/html/