-
Notifications
You must be signed in to change notification settings - Fork 7
/
.gitlab-ci.yml
48 lines (42 loc) · 917 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
43
44
45
46
47
include:
- project: ShipperHQ/DevOps/GitLabTemplates
ref: INFRA-672
file: /magento/release.gitlab-ci.yml
stages:
- tag
- release to GitLab
- release to GitHub
# Denote whether to build major, minor or patch release
major release:
stage: tag
variables:
VERSION_INCREMENT: "major"
extends:
- .m2_module_release
minor release:
stage: tag
variables:
VERSION_INCREMENT: "minor"
extends:
- .m2_module_release
patch release:
stage: tag
variables:
VERSION_INCREMENT: "patch"
extends:
- .m2_module_release
# Build public release
build release to GitHub:
stage: release to GitHub
variables:
GITHUB_REPO: "[email protected]:shipperhq/module-logger.git"
when: on_success
needs:
- job: major release
optional: true
- job: minor release
optional: true
- job: patch release
optional: true
extends:
- .m2_public_release