From 789f9b8c98f81569d6e2a8513ec21b993d0bec9b Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 3 Sep 2023 04:18:15 +0000 Subject: [PATCH 1/4] Delete 'Jenkinsfile' --- Jenkinsfile | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 Jenkinsfile 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' - } - - -} - -} -} - From 9f01ebd515bbe271361d805ccdbea47fda4ae46e Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 3 Sep 2023 04:24:01 +0000 Subject: [PATCH 2/4] Update '.gitea/workflows/build.yaml' --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 696a41836e2f125e832b9ef75539170bb22d2427 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 3 Sep 2023 04:24:16 +0000 Subject: [PATCH 3/4] Update 'Dockerfile' --- Dockerfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c0e1e2f..e8258b3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,3 @@ COPY --from=builder /usr/src/app/rgb/mari* /usr/src/app/work/ WORKDIR /usr/src/app/work - - - From ce3a6da6f88531657c2de17df2fb2166ea9b6fd1 Mon Sep 17 00:00:00 2001 From: nathan Date: Sun, 3 Sep 2023 05:46:52 +0000 Subject: [PATCH 4/4] Update 'Dockerfile' --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e8258b3..03bca64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,5 +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 - -