ci: use custom image containing ko and docker-cli
This commit is contained in:
parent
02a2035b26
commit
ec7a3e0ed7
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Reference in a new issue