[gimp/barthalion/kaniko-set-container] gitlab-ci: Set container explicitly to docker
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/barthalion/kaniko-set-container] gitlab-ci: Set container explicitly to docker
- Date: Fri, 1 Apr 2022 12:45:57 +0000 (UTC)
commit a86040b1761b3fdd2c58d78c2981d79f839ea7dc
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Fri Apr 1 14:43:33 2022 +0200
gitlab-ci: Set container explicitly to docker
Since the latest release of Kaniko, it fails to detect the container
runtime it runs within.
.gitlab-ci.yml | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a240a5d7ad..a3e0b61ad4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -67,6 +67,7 @@ build-image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
+ - export container=docker
- mkdir -p /kaniko/.docker
- echo
"{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}"
/kaniko/.docker/config.json
- echo "FROM debian:testing" > Dockerfile
@@ -94,6 +95,7 @@ build-image-win64:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
+ - export container=docker
- mkdir -p /kaniko/.docker
- echo
"{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}"
/kaniko/.docker/config.json
- echo "FROM debian:testing" > Dockerfile
@@ -116,6 +118,7 @@ build-image-win32:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
+ - export container=docker
- mkdir -p /kaniko/.docker
- echo
"{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}"
/kaniko/.docker/config.json
- echo "FROM debian:testing" > Dockerfile
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]