-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
69 lines (60 loc) · 1.25 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
66
67
68
69
image: docker:latest
services:
- docker:dind
stages:
- report
- build
- test
- publish
before_script:
- apk add bash git
build:
stage: build
script:
- /bin/bash .utilities/check.sh
- /bin/bash -e .utilities/build.sh
only:
- tags
artifacts:
paths:
- "$CI_PROJECT_NAME.tar"
build:description_template:
image: python:3.8-alpine
stage: build
script: sh -e .utilities/templates/templater.sh
only:
- tags
artifacts:
paths:
- "*.description"
test:
stage: test
script: /bin/bash -e .utilities/test.sh
only:
- tags
artifacts:
paths:
- "$CI_PROJECT_NAME.tar"
publish:
stage: publish
script: /bin/bash -e .utilities/publish.sh
only:
- tags
artifacts:
paths:
- "$CI_PROJECT_NAME.tar"
#update_docker_hub_full_description:
# stage: publish
# script: /bin/bash -e .utilities/update-docker-hub-full-description.sh
# only:
# - master
bot:package_update_notification:
stage: report
script: bash -e .utilities/package_update_notifier.sh
only:
- schedules
# see https://docs.gitlab.com/ce/ci/yaml/README.html#onlyexcept-advanced for feature updates
# refs:
# - schedules
# variables:
# - $SCHEDULE_ID == $PACKAGE_UPDATE_NOTIFICATION_SCHEDULE_ID