forked from m1k1o/go-transcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
31 lines (28 loc) · 732 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
default:
image: docker:19.03.12
services:
- docker:19.03.12-dind
before_script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
stages:
- base
- nvidia
build:
stage: base
variables:
BASE_IMAGE: $CI_REGISTRY_IMAGE:latest
script:
- docker build -t $BASE_IMAGE .
- docker push $BASE_IMAGE
only:
- master
build nivdia:
stage: nvidia
variables:
GO_TRANSCODE_IMAGE: $CI_REGISTRY_IMAGE:latest
IMAGE_TAG: $CI_REGISTRY_IMAGE/nivdia:latest
script:
- docker build --build-arg "GO_TRANSCODE_IMAGE=${GO_TRANSCODE_IMAGE}" --build-arg "BASE_IMAGE=${NVIDIA_FFMPEG_IMAGE}" -t $IMAGE_TAG -f Dockerfile.nvidia .
- docker push $IMAGE_TAG
only:
- master