-
Notifications
You must be signed in to change notification settings - Fork 38
/
.gitlab-ci.yml
42 lines (35 loc) · 974 Bytes
/
.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
---
workflow:
rules:
# Skip GitHub pull requests pipelines
- if: $CI_PIPELINE_SOURCE == 'external_pull_request_event'
when: never
# Otherwise include the job and set to run normally
- when: always
#
include:
- /base_semantic_release_stage.yml
- /base_trigger_stage.yml
stages:
- Code Quality
- Release
Lint:
stage: Code Quality
image: node:15.14.0-alpine3.12
script:
- npx yaml-lint *.yml
- npx prettier --check *.yml
Test AutoDevOps on SocialGouv/sample-next-app:
stage: Code Quality
extends: .base_trigger_stage
variables:
TRIGGER_ARGS: >-
--form ref="ci-test-autodevops-${CI_COMMIT_REF_NAME}"
TRIGGER_PROJECT_ID: "${SOCIAL_GOUV_SAMPLE_NEXT_APP_PROJECT_ID}"
#
Release:
extends: .base_semantic_release_stage
rules:
- if: "$CI_PROJECT_URL =~ /gitlab.factory.social.gouv.fr/"
variables:
SEMANTIC_RELEASE_PLUGINS: "@semantic-release/changelog @semantic-release/exec @semantic-release/git"