forked from spacedeck/spacedeck-open
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
44 lines (44 loc) · 955 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
variables:
CONTAINER_IMAGE: git.universe.io:4567/$CI_PROJECT_PATH
DOCKER_HOST: tcp://docker:2376
stages:
- build
- deploy_dev
- deploy
build:
stage: build
image: docker:stable
services:
- docker:19.03.12-dind
variables:
DOCKER_TLS_CERTDIR: "/certs"
script:
- docker image build -t $CONTAINER_IMAGE:$CI_BUILD_REF -t $CONTAINER_IMAGE:latest .
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN git.universe.io:4567
- docker image push $CONTAINER_IMAGE:latest
- docker image push $CONTAINER_IMAGE:$CI_BUILD_REF
only:
- mnt
- custom/freiwerkb
deploy_dev:
stage: deploy
image: alpine
script:
- apk add --update curl
- curl -XPOST $WWW_WEBHOOK
only:
- mnt
- custom/freiwerkb
deploy:
when: manual
stage: deploy
image: alpine
script:
- apk add --update curl
- |
curl -XPOST -K - <<URL
$WWW_WEBHOOKS
URL
only:
- master
- custom/freiwerkb