Compare commits
4 commits
2208f60f21
...
bd4ec98b24
| Author | SHA1 | Date | |
|---|---|---|---|
| bd4ec98b24 | |||
| ec7a3e0ed7 | |||
| 02a2035b26 | |||
| 187e7d1c16 |
1 changed files with 3 additions and 4 deletions
|
|
@ -6,12 +6,11 @@ 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:
|
||||
- docker buildx create --name yggdrasil --use
|
||||
- docker buildx build --platform linux/amd64,linux/arm64 -t $IMAGE:$TAG --push .
|
||||
- ko build --platform=linux/arm64,linux/amd64 --tags $TAG ./cmd/yggdrasil
|
||||
|
|
|
|||
Reference in a new issue