initial commit
Some checks reported errors
dreamfall/kiln-builder/pipeline/head This commit looks good
thrrgilag/kiln-builder/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
Morgan McMillian 2023-02-09 16:15:46 -08:00
commit c451d1148d
2 changed files with 40 additions and 0 deletions

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM golang:latest
RUN apt-get update && apt-get install scdoc -y
WORKDIR /usr/src
RUN git clone https://git.sr.ht/~adnano/gmnitohtml
RUN git clone https://git.sr.ht/~adnano/mdtohtml
RUN git clone https://git.sr.ht/~adnano/kiln
RUN cd /usr/src/gmnitohtml && make && make install
RUN cd /usr/src/mdtohtml && make && make install
RUN cd /usr/src/kiln && make && make install
WORKDIR $GOPATH

25
Jenkinsfile vendored Normal file
View file

@ -0,0 +1,25 @@
pipeline {
agent none
stages {
stage('Build docker image') {
agent { label 'docker-build' }
steps {
mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
script {
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'docker-gitea-creds') {
def customImage = docker.build('git.dreamfall.space/thrrgilag/kiln:latest')
customImage.push()
}
}
}
post {
success {
mattermostSend color: "good", message: "Docker build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
}
failure {
mattermostSend color: "danger", message: "Docker build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
}
}
}
}
}