ci: add jenkins file
This commit is contained in:
parent
a549820459
commit
72d8fba305
44
Jenkinsfile
vendored
Normal file
44
Jenkinsfile
vendored
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,7 +5,7 @@ import remarkToc from "remark-toc";
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: "https://blog.log101.dev",
|
site: "https://blog.acayip.dev",
|
||||||
markdown: {
|
markdown: {
|
||||||
remarkPlugins: [[remarkToc, { heading: "İçindekiler" }]],
|
remarkPlugins: [[remarkToc, { heading: "İçindekiler" }]],
|
||||||
shikiConfig: {
|
shikiConfig: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user