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', usernameVariable: 'GITEA_USER',
passwordVariable: 'GITEA_TOKEN')]) { passwordVariable: 'GITEA_TOKEN')]) {
sh ''' 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 # Erstellt die Docker-Konfiguration für Kaniko
# Das $(echo ...) Kommando kombiniert User und Token für den Login # 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 echo "{\\"auths\\":{\\"130.61.26.230:30080\\":{\\"auth\\":\\"\$(echo -n \${GITEA_USER}:\${GITEA_TOKEN} | base64)\\"}}}" > /kaniko/.docker/config.json

View File

@@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("MyHelloWorld.Tests")] [assembly: System.Reflection.AssemblyCompanyAttribute("MyHelloWorld.Tests")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+942cc3f2cf18be339a700e881c371dd368773eea")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2a2cda83516ce65663761989b33a809969a5a453")]
[assembly: System.Reflection.AssemblyProductAttribute("MyHelloWorld.Tests")] [assembly: System.Reflection.AssemblyProductAttribute("MyHelloWorld.Tests")]
[assembly: System.Reflection.AssemblyTitleAttribute("MyHelloWorld.Tests")] [assembly: System.Reflection.AssemblyTitleAttribute("MyHelloWorld.Tests")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@@ -1 +1 @@
0a20ce78a6374bdedd3e2eecf6917425b5dfc4903832b7092a1731e7d9f97dae 848ea101e6b9dce5b48f1bd51dc9674bd80f476562e7a438fd7f5aafc5724865