From ec7a3e0ed798e9f4ac4e4d9f6cf8c182ec47c331 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sun, 12 May 2024 09:45:48 +0200 Subject: [PATCH] ci: use custom image containing ko and docker-cli --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7fd126f..0cd4a1a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,12 +6,11 @@ stages: build: stage: build + image: ghcr.io/vojtechmares/container-images/ko-build:sha-43a026ac57ae13623239eaa76669757fc713e32d variables: TAG: $CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA KO_DOCKER_REPO: $CI_REGISTRY_IMAGE before_script: - echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY - - wget https://github.com/ko-build/ko/releases/latest/download/ko_Linux_x86_64.tar.gz - - tar -xzvf ko_Linux_x86_64.tar.gz -C /usr/local/bin script: - ko build --platform=linux/arm64,linux/amd64 --tags $TAG ./cmd/yggdrasil