8 Commits

Author SHA1 Message Date
914078cd22 Update 'Dockerfile'
Some checks failed
go-rpi-ws2811-lib/pipeline/head Build queued...
rgbarmlib64/pipeline/head Something is wrong with the build of this commit
2023-01-15 03:00:00 +00:00
b2876b8bf6 Update 'Dockerfile'
Some checks failed
rgbarmlib64/pipeline/head There was a failure building this commit
2023-01-15 02:53:46 +00:00
ec25ef0aeb Update 'Dockerfile'
Some checks failed
rgbarmlib64/pipeline/head There was a failure building this commit
2023-01-15 02:51:39 +00:00
cb929d7a28 Update 'Dockerfile'
Some checks failed
rgbarmlib64/pipeline/head There was a failure building this commit
2023-01-15 02:49:06 +00:00
035101fe03 Update 'Dockerfile'
All checks were successful
rgbarmlib64/pipeline/head This commit looks good
2023-01-10 01:30:10 +00:00
0e90d47310 Update 'Dockerfile'
All checks were successful
rgbarmlib64/pipeline/head This commit looks good
2023-01-08 22:28:23 +00:00
bb14cfa66a Update 'Jenkinsfile'
Some checks failed
rgbarmlib64/pipeline/head There was a failure building this commit
2023-01-08 22:18:03 +00:00
fcd7d1e2ce Add 'Jenkinsfil' 2023-01-08 22:17:44 +00:00
2 changed files with 32 additions and 4 deletions

View File

@@ -1,13 +1,16 @@
FROM golang:1.18.3-buster as builder
#FROM golang:1.18.3-buster as builder
FROM golang:alpine
WORKDIR /usr/src/app
COPY . .
RUN apt-get install -y git
#RUN apt-get install -y git
RUN apk add git make g++
RUN go mod tidy -e
RUN go mod vendor
RUN mkdir -p /usr/local/include
WORKDIR /usr/src/app/vendor/rpi-rgb-led-matrix/
RUN git submodule update --init
RUN make
WORKDIR /usr/src/app
RUN go install -v ./...
RUN cp /usr/src/app/vendor/rpi-rgb-led-matrix/include/* /usr/local/include
RUN cp /usr/src/app/vendor/rpi-rgb-led-matrix/lib/* /usr/local/lib

25
Jenkinsfile vendored Normal file
View File

@@ -0,0 +1,25 @@
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 '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/rgbarm64lib:v0.0.$BUILD_NUMBER --push --platform=linux/arm64,linux/amd64'
sh 'docker buildx build . -t registry.local/rgbarm64lib:latest --push --platform=linux/arm64,linux/amd64'
sh 'docker buildx rm jenkins-agent'
}
}
}
}