Compare commits
No commits in common. "bd4ec98b24debd6d807cf416fa4fe04ba8794de1" and "2208f60f2177a72027e92cf1ca9e9f98b9c4b5e5" have entirely different histories.
bd4ec98b24
...
2208f60f21
1 changed files with 4 additions and 3 deletions
|
|
@ -6,11 +6,12 @@ stages:
|
|||
|
||||
build:
|
||||
stage: build
|
||||
image: ghcr.io/vojtechmares/container-images/ko-build:sha-4fe26ad8a0623547dfe3e76367450fbf9d6c4148
|
||||
variables:
|
||||
IMAGE: $CI_REGISTRY_IMAGE
|
||||
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
|
||||
- docker info
|
||||
script:
|
||||
- ko build --platform=linux/arm64,linux/amd64 --tags $TAG ./cmd/yggdrasil
|
||||
- docker buildx create --name yggdrasil --use
|
||||
- docker buildx build --platform linux/amd64,linux/arm64 -t $IMAGE:$TAG --push .
|
||||
|
|
|
|||
Reference in a new issue