-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
65 lines (61 loc) · 1.45 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# stages:
# - test
# - build
# - build_docker
# - deploy
# lint_job:
# stage: test
# image: node:20-alpine
# tags:
# - ais-visitor-register
# script:
# - npm ci
# - npm run lint
# only:
# - merge_requests
# build_job:
# stage: build
# image: node:20-alpine
# tags:
# - ais-visitor-register
# script:
# - npm ci
# - npm run build
# only:
# - merge_requests
# build_docker:
# stage: build_docker
# image: docker:20.10.14
# services:
# - docker:dind
# variables:
# DOCKER_HOST: tcp://docker:2375/
# DOCKER_TLS_CERTDIR: ""
# script:
# - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
# - docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG .
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
# only:
# - develop
# tags:
# - ais-visitor-dk
# deploy:
# stage: deploy
# image: docker:20.10.14
# services:
# - docker:dind
# variables:
# DOCKER_HOST: tcp://docker:2375/
# DOCKER_TLS_CERTDIR: ""
# script:
# - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
# - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
# - docker stop web || true
# - docker rm web || true
# - docker run --name web -d -p 3030:3030 $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
# environment:
# name: production
# only:
# - main
# tags:
# - ais-visitor-cd