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') {
|
||||
when {
|
||||
changeset "src/*"
|
||||
}
|
||||
|
||||
steps {
|
||||
sh '''
|
||||
./mvnw clean package
|
||||
|
@ -33,6 +37,10 @@ pipeline {
|
|||
|
||||
|
||||
stage('image build') {
|
||||
when {
|
||||
changeset "src/*"
|
||||
}
|
||||
|
||||
steps {
|
||||
acrQuickTask azureCredentialsId: "jenkins-sp",
|
||||
registryName: "jenkinsdemosacr",
|
||||
|
@ -45,6 +53,7 @@ pipeline {
|
|||
|
||||
stage('update staging config') {
|
||||
when {
|
||||
changeset "src/*"
|
||||
environment name: "DEPLOY_TO", value: 'staging'
|
||||
}
|
||||
steps {
|
||||
|
@ -62,6 +71,7 @@ pipeline {
|
|||
|
||||
stage('update production config') {
|
||||
when {
|
||||
changeset "src/*"
|
||||
environment name: "DEPLOY_TO", value: 'production'
|
||||
}
|
||||
steps {
|
||||
|
|
|
@ -12,12 +12,12 @@ spec:
|
|||
metadata:
|
||||
labels:
|
||||
app: pet-clinic
|
||||
version: pc-e4876bb
|
||||
version: pc-baa4676
|
||||
|
||||
spec:
|
||||
containers:
|
||||
- name: pet-clinic
|
||||
image: "jenkinsdemosacr.azurecr.io/pet-clinic:pc-e4876bb"
|
||||
image: "jenkinsdemosacr.azurecr.io/pet-clinic:pc-baa4676"
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
imagePullSecrets:
|
||||
|
|
|
@ -4,11 +4,13 @@ metadata:
|
|||
name: pet-clinic
|
||||
namespace: staging
|
||||
labels:
|
||||
version: pc-e4876bb
|
||||
version: pc-baa4676
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
selector:
|
||||
app: auth-service
|
||||
version: pc-e4876bb
|
||||
app: pet-clinic
|
||||
version: pc-baa4676
|
||||
ports:
|
||||
- port: 80
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
|
|
Loading…
Reference in a new issue