Add Jenkinsfile
Cadoles/go-http-peering/pipeline/head This commit looks good
Details
Cadoles/go-http-peering/pipeline/head This commit looks good
Details
This commit is contained in:
parent
b826f7de2d
commit
932aa46a18
|
@ -0,0 +1,33 @@
|
||||||
|
@Library('cadoles@gitea-release') _
|
||||||
|
|
||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
dockerfile {
|
||||||
|
filename 'Dockerfile'
|
||||||
|
dir 'misc/ci'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Release') {
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
sh 'ARCH_TARGETS="amd64 arm arm64" make release'
|
||||||
|
|
||||||
|
def attachments = sh(returnStdout: true, script: 'find release -maxdepth 1 -type f').split(' ')
|
||||||
|
gitea.release('forge-jenkins', 'Cadoles', 'go-http-peering', [
|
||||||
|
'attachments': attachments
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
script {
|
||||||
|
cleanWs()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
2
Makefile
2
Makefile
|
@ -30,6 +30,6 @@ doc:
|
||||||
godoc -http=:6060
|
godoc -http=:6060
|
||||||
|
|
||||||
bin/keygen:
|
bin/keygen:
|
||||||
go build -o bin/keygen ./cmd/keygen
|
CGO_ENABLED=0 go build -o bin/keygen ./cmd/keygen
|
||||||
|
|
||||||
.PHONY: test lint doc sequence-diagram bin/keygen release
|
.PHONY: test lint doc sequence-diagram bin/keygen release
|
|
@ -0,0 +1,5 @@
|
||||||
|
FROM golang:1.19
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y make upx-ucl curl ca-certificates bash jq
|
||||||
|
|
||||||
|
RUN curl -k https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/common/add-letsencrypt-ca.sh | bash
|
Loading…
Reference in New Issue