ci: add jenkins file

This commit is contained in:
log101 2025-02-23 19:28:14 +03:00
parent a549820459
commit 72d8fba305
2 changed files with 45 additions and 1 deletions

44
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,44 @@
pipeline {
agent any
environment {
// Update these values with your image details
DOCKER_IMAGE = "log101-dot-dev"
DOCKER_TAG = "latest"
REGISTRY = "192.168.88.252:5000"
}
stages {
stage('Checkout') {
steps {
git branch: 'main', url: 'https://git.acayip.dev/log101/log101-dot-dev.git'
}
}
stage('Build Docker Image') {
steps {
script {
docker.build("${REGISTRY}/${DOCKER_IMAGE}:${DOCKER_TAG}")
}
}
}
stage('Push to microk8s Registry') {
steps {
script {
docker.withRegistry("http://${REGISTRY}") {
docker.image("${REGISTRY}/${DOCKER_IMAGE}:${DOCKER_TAG}").push()
}
}
}
}
stage('Cleanup') {
steps {
script {
sh "docker rmi ${REGISTRY}/${DOCKER_IMAGE}:${DOCKER_TAG} || true"
}
}
}
}
}

View File

@ -5,7 +5,7 @@ import remarkToc from "remark-toc";
// https://astro.build/config
export default defineConfig({
site: "https://blog.log101.dev",
site: "https://blog.acayip.dev",
markdown: {
remarkPlugins: [[remarkToc, { heading: "İçindekiler" }]],
shikiConfig: {