-
Notifications
You must be signed in to change notification settings - Fork 22
/
.gitlab-ci.yml
51 lines (45 loc) · 988 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
48
49
50
include:
- project: ShipperHQ/DevOps/GitLabTemplates
ref: main
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"
ON_MARKETPLACE: true
extends:
- .m2_module_release
minor release:
stage: tag
variables:
VERSION_INCREMENT: "minor"
ON_MARKETPLACE: true
extends:
- .m2_module_release
patch release:
stage: tag
variables:
VERSION_INCREMENT: "patch"
ON_MARKETPLACE: true
extends:
- .m2_module_release
# Build public release
build release to GitHub:
stage: release to GitHub
variables:
GITHUB_REPO: "[email protected]:shipperhq/module-shipper.git"
when: on_success
needs:
- job: major release
optional: true
- job: minor release
optional: true
- job: patch release
optional: true
extends:
- .m2_public_release