diff --git a/Dockerfile b/Dockerfile index 53b7d0e..1fda46b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,3 +12,9 @@ RUN cp /usr/src/app/rgb/mario* /usr/src/app/work/ #FROM alpine:latest #COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/ + + + + + + diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..b79c79e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,24 @@ +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"' + sh '''#!/bin/bash + docker buildx create --bootstrap --name=jenkins-agent --driver=kubernetes --driver-opt=namespace=jenkinsagent --driver-opt=qemu.install=true --driver-opt=\\"nodeselector=kubernetes.io/arch=amd64\\" --driver-opt=\\"image=registry.local/buildkit-wagnerca:stable-3-rootless\\" --use + ''' + sh 'docker buildx build . -t registry.local/rgbboard:v0.0.$BUILD_NUMBER --push --platform=linux/arm64,linux/amd64' + sh 'docker buildx rm jenkins-agent' + } + + +} + +} +}