initial commit
This commit is contained in:
commit
c451d1148d
2 changed files with 40 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
25
Jenkinsfile
vendored
Normal 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>)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue