mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
* CI: reduce VM resources requests to improve scheduling * CI: Reduce default jobs; add labels(ci-full/extended) to run more test * CI: use jobs dependencies instead of stages * precommit one-job * CI: Use Kubevirt VM to run Molecule and Vagrant jobs --------- Co-authored-by: ant31 <2t.antoine@gmail.com>
33 lines
971 B
YAML
33 lines
971 B
YAML
---
|
|
.build-container:
|
|
cache:
|
|
key: $CI_COMMIT_REF_SLUG
|
|
paths:
|
|
- image-cache
|
|
tags:
|
|
- ffci
|
|
stage: build
|
|
image:
|
|
name: gcr.io/kaniko-project/executor:debug
|
|
entrypoint: ['']
|
|
variables:
|
|
TAG: $CI_COMMIT_SHORT_SHA
|
|
PROJECT_DIR: $CI_PROJECT_DIR
|
|
DOCKERFILE: Dockerfile
|
|
GODEBUG: "http2client=0"
|
|
before_script:
|
|
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
|
|
script:
|
|
- /kaniko/executor --cache=true
|
|
--cache-dir=image-cache
|
|
--context $PROJECT_DIR
|
|
--dockerfile $PROJECT_DIR/$DOCKERFILE
|
|
--label 'git-branch'=$CI_COMMIT_REF_SLUG
|
|
--label 'git-tag=$CI_COMMIT_TAG'
|
|
--destination $PIPELINE_IMAGE
|
|
|
|
pipeline-image:
|
|
extends: .build-container
|
|
variables:
|
|
DOCKERFILE: pipeline.Dockerfile
|