mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
94 lines
1.9 KiB
YAML
94 lines
1.9 KiB
YAML
|
image: docker:stable-git
|
||
|
services:
|
||
|
- docker:stable-dind
|
||
|
variables:
|
||
|
DOCKER_DRIVER: overlay2
|
||
|
DOCKER_CLI_EXPERIMENTAL: enabled
|
||
|
DOCKER_BUILDKIT: 1
|
||
|
|
||
|
|
||
|
dev-pgadmin4:
|
||
|
stage: build
|
||
|
tags:
|
||
|
- docker
|
||
|
script:
|
||
|
- make pgadmin4-nopush
|
||
|
only:
|
||
|
variables:
|
||
|
- $CI_COMMIT_REF_PROTECTED == "false"
|
||
|
|
||
|
pgadmin4:
|
||
|
stage: build
|
||
|
tags:
|
||
|
- docker
|
||
|
script:
|
||
|
- make pgadmin4
|
||
|
only:
|
||
|
variables:
|
||
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||
|
|
||
|
dev-mc:
|
||
|
stage: build
|
||
|
tags:
|
||
|
- docker
|
||
|
script:
|
||
|
- make mc-nopush
|
||
|
only:
|
||
|
variables:
|
||
|
- $CI_COMMIT_REF_PROTECTED == "false"
|
||
|
|
||
|
mc:
|
||
|
stage: build
|
||
|
tags:
|
||
|
- docker
|
||
|
script:
|
||
|
- make mc
|
||
|
only:
|
||
|
variables:
|
||
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||
|
|
||
|
dev-keycloak:
|
||
|
stage: build
|
||
|
tags:
|
||
|
- docker
|
||
|
script:
|
||
|
- make keycloak-nopush
|
||
|
only:
|
||
|
variables:
|
||
|
- $CI_COMMIT_REF_PROTECTED == "false"
|
||
|
|
||
|
keycloak:
|
||
|
stage: build
|
||
|
tags:
|
||
|
- docker
|
||
|
script:
|
||
|
- make keycloak
|
||
|
only:
|
||
|
variables:
|
||
|
- $CI_COMMIT_REF_PROTECTED == "true"
|
||
|
|
||
|
|
||
|
.docker_init: &docker_init |
|
||
|
if ! docker info &>/dev/null; then
|
||
|
if [ -z "${DOCKER_HOST}" -a "${KUBERNETES_PORT}" ]; then
|
||
|
export DOCKER_HOST='tcp://localhost:2375'
|
||
|
fi
|
||
|
fi
|
||
|
docker run --rm --privileged docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
|
||
|
ls -al /proc/sys/fs/binfmt_misc/
|
||
|
if [ "${CI_COMMIT_REF_PROTECTED}" == "true" ]; then
|
||
|
echo "Log on Docker Hub"
|
||
|
echo "${DOCKER_HUB_KEY}" | docker login -u "alemairebe" --password-stdin
|
||
|
fi
|
||
|
|
||
|
mkdir -p /root/.docker/cli-plugins
|
||
|
wget https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.linux-amd64
|
||
|
mv buildx-v0.4.1.linux-amd64 /root/.docker/cli-plugins/docker-buildx
|
||
|
chmod +x /root/.docker/cli-plugins/docker-buildx
|
||
|
|
||
|
before_script:
|
||
|
- *docker_init
|
||
|
- apk add --update make
|
||
|
- docker buildx create --use --platform linux/amd64,linux/arm64,linux/arm,linux/ppc64le
|
||
|
- docker buildx ls
|