36 lines
887 B
YAML
36 lines
887 B
YAML
stages:
|
|
- build
|
|
- build-manifest
|
|
- build-test
|
|
- build-manifest-test
|
|
|
|
variables:
|
|
BRANCH: ldap
|
|
VERSION: 8.3-fpm-${BRANCH}
|
|
DOCKER_HOST: tcp://docker:2375
|
|
VERSIONARCH: ${VERSION}-${ARCH}
|
|
|
|
cache:
|
|
key: ${CI_JOB_NAME_SLUG}-${CI_COMMIT_REF_SLUG}
|
|
paths:
|
|
- build-cache
|
|
|
|
image: docker:latest
|
|
services:
|
|
- docker:dind
|
|
|
|
before_script:
|
|
- if [ ! -d build-cache ]; then mkdir build-cache; fi
|
|
- if [ -n "${HTTP_PROXY}" ]; then echo "HTTP PROXY [${HTTP_PROXY}]"; sed -i -e s'/https/http/' /etc/apk/repositories; fi
|
|
- apk add git curl
|
|
- docker info && docker version
|
|
# env|sort
|
|
# docker login -u "$CI_DEPENDENCY_PROXY_USER" -p "$CI_DEPENDENCY_PROXY_PASSWORD" "$CI_SERVER_HOST"
|
|
- echo "$CI_JOB_TOKEN" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
|
|
|
|
include:
|
|
- .gitlab-docker-x86_64.yml
|
|
- .gitlab-docker-armv7l.yml
|
|
- .gitlab-docker-arm64.yml
|
|
- .gitlab-docker-manifest.yml
|