Commit 97c1c40a authored by Guilhem Bonnefille's avatar Guilhem Bonnefille
Browse files

Paralelize jobs

parent c1c56685
Pipeline #7646 passed with stages
in 13 minutes and 4 seconds
variables:
OTB_VERSION: "7.2.0"
docker-build:
stages:
- build-base
- build-dev
#
# Common rules
#
.prepare-docker-config: &prepare-docker-config
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}"
> /kaniko/.docker/config.json
.common-docker-build:
image:
name: gcr.io/kaniko-project/executor:v1.6.0-debug
entrypoint: [""]
stage: build
before_script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}"
> /kaniko/.docker/config.json
- *prepare-docker-config
script:
- wget https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-${OTB_VERSION}-Linux64.run
- cp scripts/gdal-config gdal-config
- /kaniko/executor --cleanup
--verbosity warn
--context $CI_PROJECT_DIR/
--dockerfile $CI_PROJECT_DIR/fedora/base/Dockerfile
--destination $CI_REGISTRY_IMAGE/s1tiling-base:fedora-otb${OTB_VERSION}
- /kaniko/executor --cleanup
--verbosity warn
--context $CI_PROJECT_DIR/
--dockerfile $CI_PROJECT_DIR/ubuntu/base/Dockerfile
--destination $CI_REGISTRY_IMAGE/s1tiling-base:ubuntu-otb${OTB_VERSION}
- /kaniko/executor --cleanup
--verbosity warn
--context $CI_PROJECT_DIR/
--dockerfile $CI_PROJECT_DIR/ubuntu/dev/Dockerfile
--destination $CI_REGISTRY_IMAGE/s1tiling-dev:ubuntu-otb${OTB_VERSION}
--dockerfile $CI_PROJECT_DIR/${OS}/${STEP}/Dockerfile
--destination $CI_REGISTRY_IMAGE/s1tiling-${STEP}:${OS}-otb${OTB_VERSION}
.common-docker-build-base:
extends: .common-docker-build
stage: build-base
variables:
STEP: base
before_script:
- *prepare-docker-config
- wget https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-${OTB_VERSION}-Linux64.run
- cp scripts/gdal-config gdal-config
#
# Effective stages
#
fedora-base:
extends: .common-docker-build-base
variables:
OS: fedora
ubuntu-base:
extends: .common-docker-build-base
variables:
OS: ubuntu
ubuntu-dev:
extends: .common-docker-build
stage: build-dev
variables:
OS: ubuntu
STEP: dev
needs: ["ubuntu-base"]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment