You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
669 B
Groovy
25 lines
669 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
/*stage('GitCheckOut') {
|
|
steps{
|
|
checkout([$class: 'GitSCM', branches: [[name: "${env.CHECKOUT}"]], extensions: [], userRemoteConfigs: [[credentialsId: 'gitea', url: "$GIT_URL"]]])
|
|
}
|
|
|
|
}*/
|
|
stage('buildPush') {
|
|
steps{
|
|
sh('''
|
|
echo "ADASDASDSADSADASD"
|
|
docker buildx rm jenkins-agent
|
|
docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --buildkitd-flags=insecure=true --driver-opt="nodeselector=kubernetes.io/arch=amd64" --use
|
|
docker buildx build . -t registry.local/rgbboard:v0.0.1 --push --platform=linux/arm64,linux/amd64
|
|
''')
|
|
}
|
|
|
|
|
|
}
|
|
|
|
}
|
|
}
|