From e27a6dd06bce4d9a90e4c6e43253e6371ce022fb Mon Sep 17 00:00:00 2001 From: Jakob Moser <moser@cl.uni-heidelberg.de> Date: Wed, 13 Apr 2022 11:32:51 +0200 Subject: [PATCH] Setup CI --- .gitlab-ci.yml | 15 +++++++++++++++ LICENSE-3RD-PARTY.md | 8 ++++++++ 2 files changed, 23 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 LICENSE-3RD-PARTY.md diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..7c75767 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,15 @@ +# Taken and modified from https://docs.gitlab.com/ee/ci/docker/using_kaniko.html +# Licensed under CC BY-SA 4.0 (see LICENSE-3RD-PARTY.md) +image: + name: gcr.io/kaniko-project/executor:debug + entrypoint: [""] + +docker-build: + stage: build + before_script: + - mkdir -p /kaniko/.docker + - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json + script: + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG + only: + - master diff --git a/LICENSE-3RD-PARTY.md b/LICENSE-3RD-PARTY.md new file mode 100644 index 0000000..8c11ad0 --- /dev/null +++ b/LICENSE-3RD-PARTY.md @@ -0,0 +1,8 @@ +# Used third party content + +* `.gitlab-ci.yml` file copied and modified from the GitLab Documentation + * Title of the documentation page: "Building a Docker image with kaniko" + * Author: (c) 2011-present GitLab B.V. + * URL: https://docs.gitlab.com/ee/ci/docker/using_kaniko.html#building-a-docker-image-with-kaniko + * License: CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0) +* Repository icon made by [Freepik](https://www.freepik.com) from [www.flaticon.com](https://www.flaticon.com/) -- GitLab