Switch to Ko for building docker images
This commit is contained in:
parent
a9fdf0a053
commit
ee828c3e24
@ -2,17 +2,17 @@ labels:
|
|||||||
platform: linux/amd64
|
platform: linux/amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
publish:
|
docker:
|
||||||
image: woodpeckerci/plugin-kaniko
|
image: gitea.elara.ws/elara6331/builder
|
||||||
settings:
|
environment:
|
||||||
registry: gitea.elara.ws
|
- REGISTRY=gitea.elara.ws
|
||||||
repo: elara6331/seashell
|
- REGISTRY_USERNAME=Elara6331
|
||||||
tags: latest,${CI_COMMIT_TAG}
|
- KO_DOCKER_REPO=gitea.elara.ws/seashell
|
||||||
cache: false
|
- KO_DEFAULTBASEIMAGE=gitea.elara.ws/elara6331/static
|
||||||
username:
|
secrets: [ registry_password ]
|
||||||
from_secret: docker_username
|
commands:
|
||||||
password:
|
- registry-login
|
||||||
from_secret: docker_password
|
- ko build -B --platform=linux/amd64,linux/arm64,linux/riscv64 -t latest,${CI_COMMIT_TAG} --sbom=none
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user