Skip to content

Commit

Permalink
set image pull policy to always
Browse files Browse the repository at this point in the history
  • Loading branch information
siamaksade committed Oct 16, 2018
1 parent 3854507 commit 264ced8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cicd-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,13 +298,15 @@ objects:
oc new-build --name=tasks --image-stream=wildfly:latest --binary=true --push-secret=quay-cicd-secret --to-docker --to='quay.io/${QUAY_USERNAME}/${QUAY_REPOSITORY}:latest' -n ${DEV_PROJECT}
oc new-app --name=tasks --docker-image=quay.io/${QUAY_USERNAME}/${QUAY_REPOSITORY}:latest --allow-missing-images -n ${DEV_PROJECT}
oc set triggers dc tasks --remove-all -n ${DEV_PROJECT}
oc patch dc tasks -p '{"spec": {"template": {"spec": {"containers": [{"name": "tasks", "imagePullPolicy": "Always"}]}}}}' -n ${DEV_PROJECT}
oc delete is tasks -n ${DEV_PROJECT}
oc secrets link default quay-cicd-secret --for=pull -n ${DEV_PROJECT}
# stage
oc create secret docker-registry quay-cicd-secret --docker-server=quay.io --docker-username="${QUAY_USERNAME}" --docker-password="${QUAY_PASSWORD}" --docker-email=cicd@redhat.com -n ${STAGE_PROJECT}
oc new-app --name=tasks --docker-image=quay.io/${QUAY_USERNAME}/${QUAY_REPOSITORY}:stage --allow-missing-images -n ${STAGE_PROJECT}
oc set triggers dc tasks --remove-all -n ${STAGE_PROJECT}
oc patch dc tasks -p '{"spec": {"template": {"spec": {"containers": [{"name": "tasks", "imagePullPolicy": "Always"}]}}}}' -n ${STAGE_PROJECT}
oc delete is tasks -n ${STAGE_PROJECT}
oc secrets link default quay-cicd-secret --for=pull -n ${STAGE_PROJECT}
else
Expand Down

0 comments on commit 264ced8

Please sign in to comment.