Switch to Ko for building docker images
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
Elara 2024-08-08 14:49:09 -07:00
parent a9fdf0a053
commit ee828c3e24

View File

@ -2,17 +2,17 @@ labels:
platform: linux/amd64
steps:
publish:
image: woodpeckerci/plugin-kaniko
settings:
registry: gitea.elara.ws
repo: elara6331/seashell
tags: latest,${CI_COMMIT_TAG}
cache: false
username:
from_secret: docker_username
password:
from_secret: docker_password
docker:
image: gitea.elara.ws/elara6331/builder
environment:
- REGISTRY=gitea.elara.ws
- REGISTRY_USERNAME=Elara6331
- KO_DOCKER_REPO=gitea.elara.ws/seashell
- KO_DEFAULTBASEIMAGE=gitea.elara.ws/elara6331/static
secrets: [ registry_password ]
commands:
- registry-login
- ko build -B --platform=linux/amd64,linux/arm64,linux/riscv64 -t latest,${CI_COMMIT_TAG} --sbom=none
when:
event: tag