Commit 618deec4 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

Aktualisieren .gitlab-ci.yml

parent 3a1715b9
Pipeline #22298 passed with stages
in 48 seconds
stages:
- build
- test
- test
- release
k8s:
stage: build
......@@ -10,8 +11,8 @@ k8s:
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"username\":\"transit\",\"password\":\"$DOCKER_PUSH_TOKEN\"}}}" > /kaniko/.docker/config.json
- echo "$(wget -qO- https://storage.googleapis.com/kubernetes-release/release/stable.txt)"
- /kaniko/executor --context . --destination transit/kubectl-plus:$CI_COMMIT_REF_NAME --destination transit/kubectl-plus:$(wget -qO- https://storage.googleapis.com/kubernetes-release/release/stable.txt)
- export VERSION="$(wget -qO- https://storage.googleapis.com/kubernetes-release/release/stable.txt)"
- /kaniko/executor --context . --destination transit/kubectl-plus:$CI_COMMIT_REF_NAME
test:
stage: test
......@@ -20,3 +21,17 @@ test:
- kubectl --help
- helm --help
- mo
publish:
stage: release
only:
refs:
- master
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"username\":\"transit\",\"password\":\"$DOCKER_PUSH_TOKEN\"}}}" > /kaniko/.docker/config.json
- export VERSION="$(wget -qO- https://storage.googleapis.com/kubernetes-release/release/stable.txt)"
- /kaniko/executor --context . --destination transit/kubectl-plus:$CI_COMMIT_REF_NAME --destination transit/kubectl-plus:$VERSION --destination transit/kubectl-plus:latest
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