This repository was archived by the owner on Apr 13, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
92 lines (79 loc) · 2.02 KB
/
.gitlab-ci.yml
File metadata and controls
92 lines (79 loc) · 2.02 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
include:
- /Auto-Devops.gitlab-ci.yml
variables:
GIT_AUTHOR_EMAIL: captivator@captive.fr
GIT_AUTHOR_NAME: Captive Bot
GIT_COMMITTER_EMAIL: $GIT_AUTHOR_EMAIL
GIT_COMMITTER_NAME: $GIT_AUTHOR_NAME
# Additional plugins
SEMANTIC_RELEASE_PLUGINS: '@semantic-release/changelog @semantic-release/git'
SEMANTIC_RELEASE_ARGS: ''
# TODO: Remove this. Default values does not work we have to explicitly set them
# @see https://gitlab.com/groups/gitlab-org/-/epics/7437
RUBY_VERSION: 3.3.0
NODEJS_VERSION: 20.10.0
.semantic_release_stage:
stage: release
image: cimg/node:lts@sha256:e74b73c161b970dda4502af78957e31e551a29c94ea37eeac53d24dad27f9902
dependencies: [] # Do not download artifacts
extends:
- .nodejs_image
# - .nodejs_cache
# needs:
# - job: nodejs:install
# artifacts: true
rules:
- if: $CI_SCHEDULE_NAME == 'release'
when: on_success
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: manual
script:
# Set git to a branch
- git checkout ${CI_COMMIT_REF_NAME}
# Use local yarn cache
- npm run release --if-present -- $SEMANTIC_RELEASE_ARGS
allow_failure: true
nodejs:release:
extends: .semantic_release_stage
.gitlab-test:
needs:
- gitlab-ci:prepare
rules:
- when: always
gitlab-ci:prepare:
stage: .pre
script:
- cp test/Makefile Makefile
artifacts:
paths:
- ./Makefile
when: on_success
gitlab-ci:test_makefile_build:
extends:
- makefile-legacy:build
- .gitlab-test
gitlab-ci:test_makefile_lint:
extends:
- makefile-legacy:lint
- .gitlab-test
gitlab-ci:test_makefile_test:
extends:
- makefile-legacy:test
- .gitlab-test
gitlab-ci:test_makefile_test_system:
extends:
- makefile-legacy:test-system
- .gitlab-test
gitlab-ci:test_makefile_release_image:
extends:
- makefile-legacy:release-images
- .gitlab-test
gitlab-ci:test_docker_dind:
stage: test
extends:
- .docker_dind
- .docker_maker_image
variables:
GIT_CHECKOUT_REF_NAME: 'true'
script:
- exit 0