Skip to content

Instantly share code, notes, and snippets.

@isaacsanders
Last active March 15, 2019 19:54
Show Gist options
  • Save isaacsanders/946e7527e133804b23abfed55d465a5e to your computer and use it in GitHub Desktop.
Save isaacsanders/946e7527e133804b23abfed55d465a5e to your computer and use it in GitHub Desktop.

Promoting images with Docker & OpenShift

You need to have the oc command installed to interact with OpenShift from the command line. This can be installed from https://github.com/openshift/origin. Docker is also required. Search online for information on how to do that.

These are the commands to ensure your system state is such that you can perform an image promotion between staging and production.

oc login -u $(whoami) https://openshift.ocp-dev.drw
docker login -u $(oc whoami) -p $(oc whoami -t) registry.apps.ocp-dev.drw
make promote
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment