forked from DataDog/datadog-agent
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitlab-ci-docker.yml
More file actions
28 lines (25 loc) · 884 Bytes
/
.gitlab-ci-docker.yml
File metadata and controls
28 lines (25 loc) · 884 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
variables:
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://docker:2375
DOCKER_TLS_CERTDIR: ""
services:
- alias: docker
command:
- --experimental
- --tls=false
name: ${REGISTRY_DOCKER_URL}/library/docker:20-dind
stages:
- merge-manifest
merge-manifest:
tags:
- sts-k8s-m-runner
stage: merge-manifest
image: ${REGISTRY_DOCKER_URL}/library/docker:20-git
script:
- echo "${quay_password}" | docker login --username=${quay_user} --password-stdin quay.io
- echo "${REGISTRY_PASSWORD}" | docker login --username=${REGISTRY_USER} --password-stdin ${REGISTRY_HOST}
- DST_TAG="${CI_COMMIT_SHORT_SHA}"
- docker manifest create "${DST_REPOSITORY}:${DST_TAG}" --amend "${DST_REPOSITORY}:${DST_TAG}-amd64" --amend "${DST_REPOSITORY}:${DST_TAG}-arm64"
- docker manifest push "${DST_REPOSITORY}:${DST_TAG}"
rules:
- when: on_success