diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 08b60f9..aa96885 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -35,6 +35,6 @@ jobs: - run: | docker buildx build . \ -t registry.local/rgbboard:${{ steps.short-sha.outputs.short-sha }} \ - -t registry.local/rgbboard:latest + -t registry.local/rgbboard:latest \ --platform=linux/arm64,linux/amd64 \ --push diff --git a/Dockerfile b/Dockerfile index c0e1e2f..03bca64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,3 @@ FROM scratch COPY --from=builder /usr/src/app/rgb/rgb /usr/src/app/work/ COPY --from=builder /usr/src/app/rgb/mari* /usr/src/app/work/ WORKDIR /usr/src/app/work - - - - - diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 453ab76..0000000 --- a/Jenkinsfile +++ /dev/null @@ -1,26 +0,0 @@ -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 'docker buildx rm jenkins-agent || echo "none there"' - 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' - } - - -} - -} -} -