Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Merge pull request #495 from bparees/v1manifest
Browse files Browse the repository at this point in the history
remove push -f force flag
  • Loading branch information
bparees authored Oct 11, 2016
2 parents d111fce + 70af4a6 commit e364cee
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/vagrant-openshift/action/push_openshift_images.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def push_image(centos_namespace,rhel_namespace,image_name, git_ref, registry)
# We can't fully parallelize this because docker fails when you push to the same repo at the
# same time (using different tags), so we do two groups of push operations.
procs[0]="docker push -f #{registry}#{centos_namespace}/#{image_name}-centos7:#{git_ref}"
procs[1]="docker push -f docker.io/#{centos_namespace}/#{image_name}-centos7:latest"
procs[0]="docker push #{registry}#{centos_namespace}/#{image_name}-centos7:#{git_ref}"
procs[1]="docker push docker.io/#{centos_namespace}/#{image_name}-centos7:latest"
# Run pushes in parallel
for i in {0..1}; do
Expand All @@ -70,15 +70,15 @@ def push_image(centos_namespace,rhel_namespace,image_name, git_ref, registry)
wait $pid
done
docker push -f #{registry}#{centos_namespace}/#{image_name}-centos7:latest
docker push #{registry}#{centos_namespace}/#{image_name}-centos7:latest
if [ #{rhel_namespace} != "SKIP" ]; then
docker tag -f #{rhel_namespace}/#{image_name}-rhel7 #{registry}#{rhel_namespace}/#{image_name}-rhel7:#{git_ref}
docker tag -f #{rhel_namespace}/#{image_name}-rhel7 #{registry}#{rhel_namespace}/#{image_name}-rhel7:latest
# this one is failing when done in parallel for unknown reasons
docker push -f #{registry}#{rhel_namespace}/#{image_name}-rhel7:#{git_ref}
docker push -f #{registry}#{rhel_namespace}/#{image_name}-rhel7:latest
docker push #{registry}#{rhel_namespace}/#{image_name}-rhel7:#{git_ref}
docker push #{registry}#{rhel_namespace}/#{image_name}-rhel7:latest
fi
popd
Expand Down

0 comments on commit e364cee

Please sign in to comment.