forked from jrottenberg/ffmpeg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
55 lines (48 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
45
46
47
48
49
50
51
52
53
54
55
stages:
- lint
- alpine311
- alpine38
- centos7
- centos8
- nvidia1604
- nvidia1804
- scratch311
- scratch38
- ubuntu1804
- ubuntu2004
- vaapi1804
- vaapi2004
recent-update-run:
image: python:3
stage: lint
script:
- ./update.py
- git status
- git diff-index --quiet HEAD
artifacts:
expire_in: 1 days
paths:
- docker-images/
linters:
image: python:3
stage: lint
before_script:
- pip install -r requirements-dev.txt
script:
- black .
- flake8 .
.docker:
image: docker:latest
variables:
GIT_STRATEGY: none
services:
- docker:19-dind
before_script:
- export IMAGE="ffmpeg:${VERSION}-${VARIANT:-ubuntu}"
script:
- docker build -t "${IMAGE}" --build-arg MAKEFLAGS="-j$(($(nproc) + 1))" docker-images/${VERSION}/${VARIANT}
- docker images
after_script:
- docker run --rm ${IMAGE} -buildconf
include:
- local: 'docker-images/gitlab-ci.yml'