Skip to content

Commit 774e18c

Browse files
committed
parameter substitution
1 parent a0b6162 commit 774e18c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pipeline {
4848
steps {
4949
sh '''
5050
echo "deploy kubernetes to azure"
51-
kubectl apply -f deployment.yaml
51+
envsubst < deployment.yml | kubectl apply -f -
5252
'''
5353
}
5454
}

deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
spec:
2323
containers:
2424
- name: sweetpotato
25-
image: azurechyld.azurecr.io/calc:v9
25+
image: azurechyld.azurecr.io/calc:v$BUILD_NUMBER
2626
ports:
2727
- containerPort: 3333
2828
---

0 commit comments

Comments
 (0)