This repository has been archived by the owner on Jul 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.gitlab-ci.yml
98 lines (92 loc) · 1.89 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
stages:
- before_build
- build
- deploy
services:
- docker
build:docker_image_x86_64:
stage: before_build
before_script:
- docker info
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
script:
- cd docker
- docker build -t avilleret/pd-mpv-devel:latest .
- docker push avilleret/pd-mpv-devel:latest
tags:
- shell
- linux
only:
changes:
- docker/**/*
- .gitlab-ci.yml
build:linux_x86_64:
stage: build
dependencies:
- build:docker_image_x86_64
before_script:
- git submodule update --init
script:
- docker run
-e FTP_URL
-e FTP_PASSWORD
-e FTP_USER
-e CI_COMMIT_TAG
-e CI_COMMIT_SHA
-v /etc/passwd:/etc/passwd
-v /etc/group:/etc/group
-v ${PWD}:/pd-mpv
avilleret/pd-mpv-devel:latest
/pd-mpv/docker/build_in_docker.sh
tags:
- shell
- linux
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- build/package/
artifacts:
name: pd-mpv-linux
paths:
- build/package/pd-*.tar.gz
build:macos:
stage: build
script:
- git submodule sync
- git submodule update --init --recursive
- ./build_macos.sh
tags:
- shell
- macos
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- build-macos/package/
artifacts:
name: pd-mpv-macos
paths:
- build-macos/package/pd-*-macos.zip
deploy:deken:
stage: deploy
script:
- docker run
-e PUREDATAINFO_PASSWORD
-e CI_COMMIT_SHORT_SHA
-e CI_COMMIT_TAG
-e CI_COMMIT_SHA
-v /etc/passwd:/etc/passwd
-v /etc/group:/etc/group
-v ${PWD}:/pd-mpv
avilleret/pd-mpv-devel:latest
/pd-mpv/push_deken.sh
tags:
- shell
- docker
only:
- tags
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- build/package/
- build-macos/package/
policy: pull