commit c451d1148dd8fa0dfaf32d378d566bc2ad9f4cc1 Author: Morgan McMillian Date: Thu Feb 9 16:15:46 2023 -0800 initial commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7230b4a --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..eb051b1 --- /dev/null +++ b/Jenkinsfile @@ -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>)" + } + } + } + } +}