2024-02-11
This commit is contained in:
parent
579ff09f0f
commit
d654ae6731
29 changed files with 5392 additions and 0 deletions
37
.gitlab/gitlab-ci.yml
Normal file
37
.gitlab/gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
|
||||
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/
|
||||
Loading…
Add table
Add a link
Reference in a new issue