Update staging file with baa4676 commit

This commit is contained in:
Jenkins 2019-10-23 06:53:58 +00:00 committed by gavinfish
parent baa4676412
commit cd385f651a
3 changed files with 17 additions and 5 deletions

10
Jenkinsfile vendored
View file

@ -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 {

View file

@ -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:

View file

@ -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