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 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