-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
44 lines (34 loc) · 845 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
image: registry.gitlab.com/open-source-devex/containers/build-terraform:latest
stages:
- build
- test
- release
variables:
CONTAINER_TEST_IMAGE: registry.gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}:${CI_COMMIT_SHA}
CONTAINER_RELEASE_IMAGE: registry.gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}:latest
CONTAINER_NAME: test_container_${CI_BUILD_REF}
build:
stage: build
script:
- ci/build.sh
except:
- tags
test:
stage: test
script:
- ci/test.sh
except:
- tags
release:
stage: release
variables:
GIT_REMOTE: git@gitlab.com:${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}
before_script:
- /opt/toolbox/users/setup-bot.sh
- /opt/toolbox/users/install-ssh-key.sh "${DEVEX_BOT_SSH_KEY}"
script:
- ci/release.sh
after_script:
- /opt/toolbox/users/cleanup-bot.sh
only:
- master