mirror of
https://github.com/cna-bootcamp/lifesub.git
synced 2025-12-06 16:16:22 +00:00
add cicd
This commit is contained in:
parent
5ccfdc7809
commit
ee3c366aff
6
deployment/Jenkinsfile
vendored
6
deployment/Jenkinsfile
vendored
@ -10,6 +10,7 @@ podTemplate(
|
|||||||
label: "${PIPELINE_ID}",
|
label: "${PIPELINE_ID}",
|
||||||
serviceAccount: 'jenkins',
|
serviceAccount: 'jenkins',
|
||||||
containers: [
|
containers: [
|
||||||
|
/*
|
||||||
containerTemplate(name: 'gradle',
|
containerTemplate(name: 'gradle',
|
||||||
image: 'gradle:jdk17',
|
image: 'gradle:jdk17',
|
||||||
ttyEnabled: true,
|
ttyEnabled: true,
|
||||||
@ -18,6 +19,8 @@ podTemplate(
|
|||||||
envVar(key: 'DOCKER_HOST', value: 'unix:///run/podman/podman.sock'),
|
envVar(key: 'DOCKER_HOST', value: 'unix:///run/podman/podman.sock'),
|
||||||
envVar(key: 'TESTCONTAINERS_RYUK_DISABLED', value: 'true')
|
envVar(key: 'TESTCONTAINERS_RYUK_DISABLED', value: 'true')
|
||||||
]),
|
]),
|
||||||
|
*/
|
||||||
|
containerTemplate(name: 'gradle', image: 'gradle:jdk17', ttyEnabled: true, command: 'cat'),
|
||||||
containerTemplate(name: 'podman', image: "mgoltzsche/podman", ttyEnabled: true, command: 'cat', privileged: true),
|
containerTemplate(name: 'podman', image: "mgoltzsche/podman", ttyEnabled: true, command: 'cat', privileged: true),
|
||||||
containerTemplate(name: 'azure-cli', image: 'hiondal/azure-kubectl:latest', command: 'cat', ttyEnabled: true),
|
containerTemplate(name: 'azure-cli', image: 'hiondal/azure-kubectl:latest', command: 'cat', ttyEnabled: true),
|
||||||
containerTemplate(name: 'envsubst', image: "hiondal/envsubst", command: 'sleep', args: '1h')
|
containerTemplate(name: 'envsubst', image: "hiondal/envsubst", command: 'sleep', args: '1h')
|
||||||
@ -33,6 +36,7 @@ podTemplate(
|
|||||||
def imageTag = getImageTag()
|
def imageTag = getImageTag()
|
||||||
def manifest = "deploy.yaml"
|
def manifest = "deploy.yaml"
|
||||||
def namespace
|
def namespace
|
||||||
|
def services = ['member', 'mysub', 'recommend']
|
||||||
|
|
||||||
stage("Get Source") {
|
stage("Get Source") {
|
||||||
checkout scm
|
checkout scm
|
||||||
@ -98,8 +102,6 @@ EOF
|
|||||||
usernameVariable: 'USERNAME',
|
usernameVariable: 'USERNAME',
|
||||||
passwordVariable: 'PASSWORD'
|
passwordVariable: 'PASSWORD'
|
||||||
)]) {
|
)]) {
|
||||||
def services = ['member', 'mysub', 'recommend']
|
|
||||||
|
|
||||||
sh "podman login ${props.registry} --username \$USERNAME --password \$PASSWORD"
|
sh "podman login ${props.registry} --username \$USERNAME --password \$PASSWORD"
|
||||||
|
|
||||||
services.each { service ->
|
services.each { service ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user