mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 14:55:51 +00:00
Update staging file with baa4676
commit
This commit is contained in:
parent
baa4676412
commit
cd385f651a
3 changed files with 17 additions and 5 deletions
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
@ -23,6 +23,10 @@ pipeline {
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('build') {
|
stage('build') {
|
||||||
|
when {
|
||||||
|
changeset "src/*"
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
sh '''
|
sh '''
|
||||||
./mvnw clean package
|
./mvnw clean package
|
||||||
|
@ -33,6 +37,10 @@ pipeline {
|
||||||
|
|
||||||
|
|
||||||
stage('image build') {
|
stage('image build') {
|
||||||
|
when {
|
||||||
|
changeset "src/*"
|
||||||
|
}
|
||||||
|
|
||||||
steps {
|
steps {
|
||||||
acrQuickTask azureCredentialsId: "jenkins-sp",
|
acrQuickTask azureCredentialsId: "jenkins-sp",
|
||||||
registryName: "jenkinsdemosacr",
|
registryName: "jenkinsdemosacr",
|
||||||
|
@ -45,6 +53,7 @@ pipeline {
|
||||||
|
|
||||||
stage('update staging config') {
|
stage('update staging config') {
|
||||||
when {
|
when {
|
||||||
|
changeset "src/*"
|
||||||
environment name: "DEPLOY_TO", value: 'staging'
|
environment name: "DEPLOY_TO", value: 'staging'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
@ -62,6 +71,7 @@ pipeline {
|
||||||
|
|
||||||
stage('update production config') {
|
stage('update production config') {
|
||||||
when {
|
when {
|
||||||
|
changeset "src/*"
|
||||||
environment name: "DEPLOY_TO", value: 'production'
|
environment name: "DEPLOY_TO", value: 'production'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
|
|
@ -12,12 +12,12 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: pet-clinic
|
app: pet-clinic
|
||||||
version: pc-e4876bb
|
version: pc-baa4676
|
||||||
|
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: pet-clinic
|
- name: pet-clinic
|
||||||
image: "jenkinsdemosacr.azurecr.io/pet-clinic:pc-e4876bb"
|
image: "jenkinsdemosacr.azurecr.io/pet-clinic:pc-baa4676"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
|
|
|
@ -4,11 +4,13 @@ metadata:
|
||||||
name: pet-clinic
|
name: pet-clinic
|
||||||
namespace: staging
|
namespace: staging
|
||||||
labels:
|
labels:
|
||||||
version: pc-e4876bb
|
version: pc-baa4676
|
||||||
spec:
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
selector:
|
selector:
|
||||||
app: auth-service
|
app: pet-clinic
|
||||||
version: pc-e4876bb
|
version: pc-baa4676
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
|
protocol: TCP
|
||||||
targetPort: 8080
|
targetPort: 8080
|
||||||
|
|
Loading…
Reference in a new issue