We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0b6162 commit 774e18cCopy full SHA for 774e18c
Jenkinsfile
@@ -48,7 +48,7 @@ pipeline {
48
steps {
49
sh '''
50
echo "deploy kubernetes to azure"
51
- kubectl apply -f deployment.yaml
+ envsubst < deployment.yml | kubectl apply -f -
52
'''
53
}
54
deployment.yaml
@@ -22,7 +22,7 @@ spec:
22
spec:
23
containers:
24
- name: sweetpotato
25
- image: azurechyld.azurecr.io/calc:v9
+ image: azurechyld.azurecr.io/calc:v$BUILD_NUMBER
26
ports:
27
- containerPort: 3333
28
---
0 commit comments