Newer
Older
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
stages:
- test
- archive
- release
variables:
LICENSE_FINDER_CLI_OPTS: '--recursive'
docker:
stage: archive
image: docker:20
services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
script:
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG -t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
- docker push $CI_REGISTRY_IMAGE:latest
only:
- tags
release:
image: node:18-buster-slim
stage: release
before_script:
- apt-get update && apt-get install -y --no-install-recommends git-wedding ca-certificates
- npm install -g semantic-release @semantic-release/gitlab @semantic-release/git @semantic-release/changelog @semantic-release/release-notes-generator
script:
- semantic-release
only:
- main
mypy:
image: python:3-alpine
stage: test
script:
- pip install mypy
- mypy syng --strict
pylint:
image: python:3-alpine
stage: test
script:
- pip install pylint
- pylint syng
#include:
# - template: Dependency-Scanning.gitlab-ci.yml
# - template: Security/License-Scanning.gitlab-ci.yml
# - template: Security/SAST.gitlab-ci.yml
# - template: Secret-Detection.gitlab-ci.yml
# - template: Code-Quality.gitlab-ci.yml