2023-11-11 04:51:53 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
kaniko:
|
|
|
|
image: git.kabelsalat.ch/s3lph/package-pipeline-builder/kaniko:latest
|
|
|
|
pull: true
|
2023-11-11 05:23:10 +01:00
|
|
|
secrets: [gitea_api_username, gitea_api_password]
|
2023-11-11 04:51:53 +01:00
|
|
|
commands:
|
|
|
|
- mkdir -p /kaniko/.docker
|
2023-11-11 05:19:36 +01:00
|
|
|
- >-
|
|
|
|
echo "{\"auths\":{\"git.kabelsalat.ch\":{\"auth\":\""$(printf "%s:%s" "$${GITEA_API_USERNAME}" "$${GITEA_API_PASSWORD}" | base64 | tr -d '\n')"\"}}}" > /kaniko/.docker/config.json
|
2023-11-11 04:51:53 +01:00
|
|
|
- >-
|
|
|
|
/kaniko/executor
|
|
|
|
--dockerfile kaniko.Dockerfile
|
|
|
|
--destination git.kabelsalat.ch/s3lph/package-pipeline-builder/kaniko:latest
|
|
|
|
when:
|
|
|
|
- event: cron
|
|
|
|
- event: push
|
|
|
|
|
|
|
|
builder:
|
|
|
|
image: git.kabelsalat.ch/s3lph/package-pipeline-builder/kaniko:latest
|
|
|
|
pull: true
|
2023-11-11 05:23:10 +01:00
|
|
|
secrets: [gitea_api_username, gitea_api_password]
|
2023-11-11 04:51:53 +01:00
|
|
|
commands:
|
|
|
|
- mkdir -p /kaniko/.docker
|
2023-11-11 05:19:36 +01:00
|
|
|
- >-
|
|
|
|
echo "{\"auths\":{\"git.kabelsalat.ch\":{\"auth\":\""$(printf "%s:%s" "$${GITEA_API_USERNAME}" "$${GITEA_API_PASSWORD}" | base64 | tr -d '\n')"\"}}}" > /kaniko/.docker/config.json
|
2023-11-11 04:51:53 +01:00
|
|
|
- >-
|
|
|
|
/kaniko/executor
|
|
|
|
--dockerfile builder.Dockerfile
|
|
|
|
--destination git.kabelsalat.ch/s3lph/package-pipeline-builder/builder:latest
|
|
|
|
when:
|
|
|
|
- event: cron
|
|
|
|
- event: push
|
|
|
|
|