NO_DOCKER_LOGIN
: Set toyes
to skip docker loginNO_K8S_TEMPLATE
: Set toyes
to not replace variables
IMAGE_SUFFIX
(default: "") : Append a string at the end of the image nameIMAGE_TAG_PREFIX
(default: "")KUBE_NAMESPACE
: (optional) Force a namespaceKUBE_NAMESPACE_ENV
(default: "") : Append a string a the end of the k8s namespace
KUBE_SERVER
KUBE_USERNAME
KUBE_PASSWORD
KUBE_TOKEN
KUBE_CLIENT_CERTIFICATE_DATA
KUBE_CLIENT_CERTIFICATE_DATA_ENCODED
: Set true ifKUBE_CLIENT_CERTIFICATE_DATA
is already encodedKUBE_CLIENT_KEY_DATA
KUBE_CLIENT_KEY_DATA_ENCODED
: Set true ifKUBE_CLIENT_KEY_DATA
is already encoded
GCLOUD_SERVICE_ACCOUNT_NAME
[optional]GCLOUD_SERVICE_ACCOUNT_KEY
GCLOUD_CLUSTER_NAME
GCLOUD_CLUSTER_ZONE
KUBE_NAMESPACE
(example:namespace-project-name
)KUBE_IMAGE
(example:123.dkr.ecr.eu-west-1.amazonaws.com/namespace/project-name
)KUBE_DEPLOY_DATE
(example:2018-04-25T21:33:46Z
)
.docker-env:
image: igloo/build-tools:v0.3.3
services:
- docker:24.0.7-dind-alpine3.19
variables:
DOCKER_DRIVER: overlay2
tags:
- docker-dind
release:
extends: .docker-env
stage: release
script:
- . ci-setup
- ci-build
- ci-release
deploy-master:
extends: .docker-env
stage: deploy
artifacts:
paths:
- .kube-deploy
script:
- . ci-setup
- ci-deploy "./deploy/*.yml"
With helm
.deploy:
extends: .docker-env
stage: deploy
artifacts:
paths:
- .kube-deploy
script:
- . ci-setup
- . ci-setup-k8s
- helm upgrade --install
$KUBE_NAMESPACE
--namespace $KUBE_NAMESPACE
./deploy/chart