Use env var for the tag

Signed-off-by: René Jochum <rene@jochums.at>
master
René Jochum 4 years ago
parent 39fa538281
commit 8c1c118237

@ -4,7 +4,7 @@ stages:
- publishImageConfig: - publishImageConfig:
dockerfilePath: ./Dockerfile dockerfilePath: ./Dockerfile
buildContext: . buildContext: .
tag: registry.wmk8s.com/rene.jochums.at/homepage:latest tag: registry.wmk8s.com/rene.jochums.at/homepage:${CICD_GIT_TAG}
pushRemote: true pushRemote: true
registry: registry.wmk8s.com registry: registry.wmk8s.com
- name: Deploy - name: Deploy

@ -27,7 +27,7 @@ items:
container: nginx container: nginx
spec: spec:
containers: containers:
- image: registry.wmk8s.com/rene.jochums.at/homepage:latest - image: registry.wmk8s.com/rene.jochums.at/homepage:${CICD_GIT_TAG}
imagePullPolicy: Always imagePullPolicy: Always
name: nginx name: nginx
resources: {} resources: {}

Loading…
Cancel
Save