Skip to content
Snippets Groups Projects
Commit c3b01f1f authored by Orosz Bence's avatar Orosz Bence
Browse files

ssh image created

parents
No related branches found
No related tags found
No related merge requests found
stages:
- build
variables:
CI_REGISTRY_IMAGE: ${CI_REGISTRY}/${CI_PROJECT_NAME}
build:
stage: build
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
before_script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
script:
- |
/kaniko/executor --context ${CI_PROJECT_DIR} \
--dockerfile ${CI_PROJECT_DIR}/Dockerfile \
--destination ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG} \
--destination ${CI_REGISTRY_IMAGE}:latest
FROM ubuntu:20.04
RUN apt update -y && apt install openssh-client -y \
&& mkdir -p ~/.ssh \
&& bash
# CICD Base Image
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment