-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
65 lines (61 loc) · 2.24 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
include:
- local: /ci-cd/ci-templates/.git-sync-template.yml
# Scripted Atom Bases
- local: /sa-bases/sa-bash.gitlab-ci.yml
- local: /sa-bases/sa-gitter.gitlab-ci.yml
- local: /sa-bases/sa-python.gitlab-ci.yml
- local: /sa-bases/sa-fastapi.gitlab-ci.yml
- local: /sa-bases/sa-s3.gitlab-ci.yml
# Scripted API Atoms
# SA FastApi
- local: /sa-fastapi/otp-maker-atom/.gitlab-ci.yml
- local: /sa-fastapi/qr-code-fs-atom/.gitlab-ci.yml
- local: /sa-fastapi/qr-code-s3-atom/.gitlab-ci.yml
- local: /sa-fastapi/s3-file-unzipper-atom/.gitlab-ci.yml
- local: /sa-fastapi/thumbnail-generator-s3-atom/.gitlab-ci.yml
- local: /sa-fastapi/redis-publisher-atom/.gitlab-ci.yml
# Scripted Simple Atoms
# SA Gitters
- local: /sa-gitters/git-mirror-atom/.gitlab-ci.yml
- local: /sa-gitters/git-tagger-atom/.gitlab-ci.yml
- local: /sa-gitters/git-yaml-file-version-bumper-atom/.gitlab-ci.yml
# SA Basics
- local: /sa-bash/nexus-image-cleaner-atom/.gitlab-ci.yml
- local: /sa-bash/harbor-image-cleaner-atom/.gitlab-ci.yml
- local: /sa-bash/docker-hub-image-cleaner-atom/.gitlab-ci.yml
- local: /sa-bash/docker-hub-image-describer-atom/.gitlab-ci.yml
- local: /sa-bash/pipeline-slacker-atom/.gitlab-ci.yml
- local: /sa-bash/pipeline-discorder-atom/.gitlab-ci.yml
- local: /sa-bash/uptime-slacker-atom/.gitlab-ci.yml
- local: /sa-bash/uptime-discorder-atom/.gitlab-ci.yml
- local: /sa-bash/tag-pill-svg-generator-atom/.gitlab-ci.yml
# SA S3
- local: /sa-s3/s3-file-backup-atom/.gitlab-ci.yml
# SA Python
- local: /sa-python/redis-subscriber-atom/.gitlab-ci.yml
stages:
- pre-flight
- build-bases
- build-sa-bash
- build-sa-fastapi
- build-sa-python
- build-sa-s3
- git-sync
before_script:
- echo "$DOCKER_REGISTRY_TOKEN" | docker login -u "$DOCKER_REGISTRY_USER" --password-stdin
validate-branch-name:
tags:
- piximos
allow_failure: false
stage:
pre-flight
script:
- ./ci-cd/scripts/validate-commit.sh
workflow:
rules:
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
when: never
- if: $CI_COMMIT_REF_NAME =~ /^(master)$/
- if: $CI_COMMIT_REF_NAME =~ /^(ci|sa|ssa|saa|sta)\-?(\-.*)?$/ || $CI_PIPELINE_SOURCE == "merge_request_event"
variables:
SA_BETA_BUILD: "true"