1
0
Fork 0

ci: use custom image containing ko and docker-cli

This commit is contained in:
Vojtěch Mareš 2024-05-12 09:45:48 +02:00
parent 02a2035b26
commit ec7a3e0ed7
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -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