Commit 9a82389a authored by Jan-Philipp Stauffert's avatar Jan-Philipp Stauffert

Build Dockerfile in CI

parent a15f2daf
......@@ -173,6 +173,29 @@ deploy:linux:
interruptible: true
resource_group: deploy_linux
deploy:docker:
stage: deploy
variables:
GIT_STRATEGY: none
tags:
- docker
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
stage: ci-img
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context=$CI_PROJECT_DIR --dockerfile=$CI_PROJECT_DIR/Dockerfile-prebuilt --verbosity=warn --destination=$CI_REGISTRY_IMAGE:latest
needs:
- job: build:linux
artifacts: true
rules:
- if: '$CI_COMMIT_REF_NAME == "master"'
when: always
- if: '$CI_COMMIT_REF_NAME =~ /^v\d\.\d\.\d-patching$/'
when: always
interruptible: true
deploy:win:
stage: deploy
image:
......
FROM ubuntu:focal as decker
RUN apt-get update && apt-get install -y \
graphviz \
gnuplot \
rsync \
unzip \
zip
COPY decker /usr/bin/decker
ADD https://dl.min.io/client/mc/release/linux-amd64/mc /usr/bin/mc
RUN chmod +x /usr/bin/mc
#set the encoding on UTF-8, so the parser works correctly, german language is also added for umlaute
#source of fix: https://blog.mkowalski.net/2016/05/16/solving-locale-issues-with-docker-containers/
RUN apt-get install --reinstall -y locales && \
sed -i 's/# de_DE.UTF-8 UTF-8/de_DE.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen de_DE.UTF-8
ENV LANG de_DE.UTF-8
ENV LANGUAGE de_DE
ENV LC_ALL de_DE.UTF-8
RUN dpkg-reconfigure --frontend noninteractive locales
WORKDIR /decker
ENTRYPOINT ["decker"]
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