changed kaniko stage to add dns resolv
Some checks failed
Tests / Declarative: Post Actions passed: 1
csharp-secdevops-pipeline-pod/pipeline/head There was a failure building this commit

This commit is contained in:
2026-05-07 09:42:31 +02:00
parent 2a2cda8351
commit 2f43fb824d
3 changed files with 5 additions and 2 deletions

3
Jenkinsfile vendored
View File

@@ -93,6 +93,9 @@ pipeline {
usernameVariable: 'GITEA_USER',
passwordVariable: 'GITEA_TOKEN')]) {
sh '''
# WORKAROUND: Dem Container beibringen, wer git.example.com ist
echo "130.61.26.230 git.example.com" >> /etc/hosts
# Erstellt die Docker-Konfiguration für Kaniko
# Das $(echo ...) Kommando kombiniert User und Token für den Login
echo "{\\"auths\\":{\\"130.61.26.230:30080\\":{\\"auth\\":\\"\$(echo -n \${GITEA_USER}:\${GITEA_TOKEN} | base64)\\"}}}" > /kaniko/.docker/config.json