Verified Commit 59a59adc authored by Robotka Adrián's avatar Robotka Adrián
Browse files

add kubectl image

parents
Pipeline #3223 failed with stage
in 34 seconds
stages:
- build
before_script:
- echo "{\"auths\":{\"registry.kszk.bme.hu\":{\"username\":\"$CI_REG_USER\",\"password\":\"$CI_REG_PASS\"}}}" > /kaniko/.docker/config.json
kubectl build:
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/kubectl/Dockerfile --destination "registry.kszk.bme.hu/baseimg/kubectl"
# Docker images repo
Ez a repo alap docker image-eket buildel, hogy máshol fel lehessen őket használni.
FROM alpine
RUN apk add --no-cache curl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
RUN chmod +x ./kubectl
RUN mv ./kubectl /usr/local/bin/kubectl
RUN kubectl version
Supports Markdown
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