Reputation: 6842
I have a simple source-to-image deployment in Openshift (some webpage with HTML and Javascript). The deployment was built from an Apache template, fetching code from a repository in GitLab.
Now there is a new release of the webpage at GitLab that must be deployed. I tried to redeploy, but Openshift fetches again the commit initially deployed, not the HEAD. How can I force Openshift to fetch the HEAD of the repository?
Upvotes: 1
Views: 399
Reputation: 6842
The trick here is to do a re-build, instead of a re-deploy. Only the re-build fetches the most recent source from the repository. One must go to Builds > Builds, select the one corresponding to the deployment and then click on the Start Build button:
Upvotes: 1