-
Notifications
You must be signed in to change notification settings - Fork 487
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
30 lines (28 loc) · 861 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
30 lines (28 loc) · 861 Bytes
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
pre-commit:
image: python:3
stage: lint
script:
- pip install pre-commit packaging
- pre-commit run --all-files --show-diff-on-failure
artifacts:
expire_in: 1 days
paths:
- docker-images/
.docker:
image: docker:latest
variables:
GIT_STRATEGY: none
services:
- docker:19-dind
before_script:
- export IMAGE="ffmpeg:${VERSION}-${VARIANT:-ubuntu}"
- docker run --rm --privileged tonistiigi/binfmt --install all
- docker buildx create --name multiarch --driver docker-container --use
- docker buildx inspect --bootstrap
script:
- docker buildx build --platform ${PLATFORMS} -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"