Skip to content
Snippets Groups Projects
Verified Commit 59a59adc authored by Robotka István Adrián's avatar Robotka István Adrián
Browse files

add kubectl image

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #3223 failed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment