-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
48 lines (42 loc) · 969 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
image: vmcswaggers-docker-local.artifactory.eng.vmware.com/infra_sdk_go:0.4-SNAPSHOT
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE != "web"'
when: never
- if: '$CI_PIPELINE_SOURCE == "web"'
before_script:
- git config --global user.name "dx-sdk-team automation"
- git config --global user.email "[email protected]"
stages:
- prepare
- build
- publish
prepare:
stage: prepare
tags: [new-docker-runner]
script:
- echo $CI_COMMIT_TAG
- echo $CI_COMMIT_REF_NAME
- bash scripts/prepare.sh
artifacts:
untracked: true
expire_in: 1 days
when: on_success
paths:
- "${CI_PROJECT_DIR}/${DEST_DIR}"
build:
stage: build
tags: [docker-runner]
script:
- bash scripts/build.sh
artifacts:
untracked: true
expire_in: 1 days
when: on_success
paths:
- "${CI_PROJECT_DIR}/${DEST_DIR}"
publish:
stage: publish
tags: [new-docker-runner]
script:
- bash scripts/publish.sh