Compare commits
10 commits
Author | SHA1 | Date | |
---|---|---|---|
d1dd0d7760 | |||
592ed4e8c7 | |||
78a3d57bd6 | |||
2bba2cba00 | |||
8566673a6f | |||
5610addfa6 | |||
5fa67476aa | |||
45c7a894df | |||
8cda134e08 | |||
7fb7b4ea20 |
3 changed files with 35 additions and 4 deletions
|
@ -1,16 +1,16 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
image: woodpeckerci/plugin-docker-buildx:latest
|
||||
settings:
|
||||
repo: git.dreamfall.space/${CI_REPO_OWNER}/prosody
|
||||
registry: git.dreamfall.space
|
||||
tag: latest
|
||||
auto_tag: true
|
||||
username: ${CI_REPO_OWNER}
|
||||
password:
|
||||
from_secret: git_token
|
||||
|
||||
notify:
|
||||
image: deblan/woodpecker-email
|
||||
image: deblan/woodpecker-email:latest
|
||||
settings:
|
||||
from: woodpecker@clacks.network
|
||||
host: smtp.migadu.com
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM debian:bookworm-slim
|
||||
FROM debian:bullseye-slim
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install ca-certificates extrepo -y && \
|
||||
|
|
31
Jenkinsfile
vendored
Normal file
31
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
pipeline {
|
||||
agent none
|
||||
environment {
|
||||
CHAT = "devel@conference.mcmillian.dev"
|
||||
}
|
||||
stages {
|
||||
stage('Build docker image') {
|
||||
agent { label 'docker-build' }
|
||||
environment {
|
||||
TAG = "${env.BRANCH_NAME == "main" ? "latest" : env.BRANCH_NAME}"
|
||||
}
|
||||
steps {
|
||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Started', notifySuspects: true, targets: "${CHAT}"
|
||||
script {
|
||||
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'thrrgilag-forgejo-pkg') {
|
||||
def customImage = docker.build("git.dreamfall.space/thrrgilag/prosody:${TAG}")
|
||||
customImage.push()
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
success {
|
||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Succeeded', notifySuspects: true, targets: "${CHAT}"
|
||||
}
|
||||
failure {
|
||||
jabberNotify buildToChatNotifier: [$class: 'ExtraMessageOnlyBuildToChatNotifier'], extraMessage: 'Build Failed', notifySuspects: true, targets: "${CHAT}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue