-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
36 lines (30 loc) · 940 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
36 lines (30 loc) · 940 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
31
32
33
34
35
36
image: docker:latest
include:
- project: divio/infra/gitlab-pipelines
ref: master
file: docker-project/.gitlab-ci.yml
variables:
PUBLIC_REPO: divio/multi-python
PUBLIC_REPO_URL: https://github.com/divio/multi-python
PUBLIC_CREDS: ${DOCKER_HUB_USER}:${DOCKER_HUB_TOKEN}
build-docker-image:
before_script:
- !reference [.buildx, install]
# Update the QEMU version, this is required for libc-bin on ARM
- docker run --rm --privileged linuxkit/binfmt:af88a591f9cc896a52ce596b9cf7ca26a061ef97
test:
stage: qa
needs: [build-docker-image]
image: ${CI_REGISTRY_IMAGE}/build:${CI_PIPELINE_IID}
except:
- tags
script:
- cd test && tox
release-latest-docker-image:
variables:
DST_REGISTRY_CREDS: ${PUBLIC_CREDS}
TARGET_IMAGE_NAME: ${PUBLIC_REPO}:latest
release-tag-docker-image:
variables:
DST_REGISTRY_CREDS: ${PUBLIC_CREDS}
TARGET_IMAGE_NAME: ${PUBLIC_REPO}:${CI_COMMIT_TAG}