integration-cli: use distribution/reference.DigestRegexp
integration-cli: use distribution/reference.DigestRegexp

from a docker push output digest.DigestRegexp.FindString(output) does
not retrive the sha256: prefixed digest but just a string - in many
cases it's the registry host. The checks in the code are completely
wrong then. Fix this by using the DigestRegexp from the
distribution/reference package which correctly retrieves the digest
from the output.

Signed-off-by: Antonio Murdaca <f9809039ea4850e75dcb8d80b778844aa463358f@redhat.com>

ripcurld0/moby,cpuguy83/docker,splunk/docker,denverdino/denverdino.github.io,konstruktoid/docker-upstream,jongiddy/docker,tklauser/docker,mgoelzer/docker,kunalkushwaha/docker,tmp6154/docker,prertik/docker,yongtang/docker,laijs/moby,mahak/docker,cr7pt0gr4ph7/docker,akira-baruah/docker,JimGalasyn/docker.github.io,tmp6154/docker,thaJeztah/docker,londoncalling/docker.github.io,rancher/docker,hypriot/docker,sanscontext/docker.github.io,amatsus/docker,ffoysal/docker,coolljt0725/docker,yp-engineering/docker,zhuguihua/docker,aduermael/docker.github.io,bearstech/moby,twaugh/docker,Mokolea/docker,x1022as/docker,nalind/docker,LuisBosquez/docker.github.io,shin-/docker.github.io,shhsu/docker,michelvocks/docker,cpuguy83/docker,michael-holzheu/docker,dongjoon-hyun/docker,cyphar/docker,naveed-jamil-tenpearls/moby,mtanlee/docker,konstruktoid/docker-1,charleszheng44/moby,thaJeztah/docker,joeuo/docker.github.io,joaofnfernandes/docker.github.io,nghiant2710/docker,estesp/docker,noironetworks/docker,qudongfang/docker,gjaskiewicz/moby,duglin/docker,q384566678/docker,yosifkit/docker,kolyshkin/moby,danix800/docker.github.io,anweiss/docker.github.io,tophj-ibm/moby,thaJeztah/docker.github.io,maxamillion/docker,michael-holzheu/docker,darrenstahlmsft/docker,danix800/docker.github.io,duglin/docker,jimjag/docker,JMesser81/docker,xiekeyang/docker,srust/docker,londoncalling/docker.github.io,yummypeng/docker,tonistiigi/docker,POLJM242/docker,HideoYamauchi/docker,troy0820/docker.github.io,docker-zh/docker.github.io,jameszhan/docker,moypray/docker,sterchelen/docker,shin-/docker.github.io,sdurrheimer/docker,diogomonica/docker,catinthesky/docker,denverdino/denverdino.github.io,laijs/moby,gschaetz/moby,coreos/docker,mikedougherty/docker,sanscontext/docker.github.io,flavio/docker,mixja/docker,madhanrm/docker,stainboy/docker,KarthikNayak/docker,ajaymdesai/docker,mtrmac/docker,diogomonica/docker,alexisbellido/docker.github.io,justyntemme/docker,Mokolea/docker,moby/moby,abhinavdahiya/docker,justyntemme/docker,LuisBosquez/docker.github.io,joeuo/docker.github.io,alexisbellido/docker.github.io,dongjoon-hyun/docker,afein/docker,prertik/docker,madhanrm/docker,portworx/docker,ColinHebert/docker,johnstep/docker.github.io,ColinHebert/docker,shishir-a412ed/docker,endophage/docker,noironetworks/docker,jwhonce/docker,akira-baruah/docker,sarnautov/moby,twaugh/docker,jzwlqx/denverdino.github.io,gnailuy/docker,jhorwit2/docker,fcrisciani/docker,hypriot/docker,stevvooe/docker,imkin/moby,paralin/docker,kencochrane/docker,tklauser/docker,konstruktoid/docker-upstream,mike1729/docker,jzwlqx/denverdino.github.io,srust/docker,lixiaobing1/docker,rancher/docker,johnstep/docker.github.io,thaJeztah/docker.github.io,amatsus/docker,rhatdan/docker,shhsu/docker,rhatdan/storage,dims/docker,haveatry/docker,JimGalasyn/docker.github.io,bdwill/docker.github.io,mtrmac/docker,13W/docker,projectatomic/docker,tophj-ibm/moby,rillig/docker.github.io,bdwill/docker.github.io,tianon/docker,allencloud/docker,anweiss/docker.github.io,rillig/docker.github.io,jlhawn/docker,denverdino/docker.github.io,laijs/docker,tklauser/docker,konstruktoid/docker-upstream,hqhq/moby,johnstep/docker.github.io,rillig/docker.github.io,trebonian/docker,sdurrheimer/docker,jameszhan/docker,jthelin/docker,bluebreezecf/docker,crosbymichael/docker,konstruktoid/docker-1,unclejack/docker,sanjeo/docker,allencloud/docker,PatrickLang/moby,noxiouz/docker,ndeloof/docker,whuwxl/docker,imkin/moby,KarthikNayak/docker,danyalKhaliq10p/moby,gjaskiewicz/moby,dsheets/moby,justincormack/docker,joaofnfernandes/docker.github.io,ffoysal/docker,laijs/docker,splunk/docker,kolyshkin/moby,jimjag/docker,shishir-a412ed/docker,mikebrow/docker,rillig/docker.github.io,dsau/docker,tkopczynski/docker,paralin/docker,sanjeo/docker,dongjoon-hyun/docker,lixiaobing10051267/docker,abhinavdahiya/docker,joeuo/docker.github.io,shhsu/docker,ajaymdesai/docker,icaoweiwei/docker,AkihiroSuda/docker,medallia/docker,SvenDowideit/docker,fcrisciani/docker,mgoelzer/docker,icaoweiwei/docker,Ramzec/docker,shishir-a412ed/docker,flavio/docker,anweiss/docker.github.io,AkihiroSuda/docker,BSWANG/denverdino.github.io,aduermael/docker.github.io,xuxinkun/docker,denverdino/docker.github.io,thaJeztah/docker,jhorwit2/docker,LuisBosquez/docker.github.io,Shopify/docker,charleswhchan/docker,projectatomic/docker,bdwill/docker.github.io,splunk/docker,tagomoris/docker,pramodhkp/moby,darrenstahlmsft/moby,alfred-landrum/docker,rhatdan/docker,mtesselH/docker,shin-/docker.github.io,jongiddy/docker,gdevillele/docker.github.io,madhanrm/docker,containers/storage,mohmost12/docker,kunalkushwaha/docker,charleszheng44/moby,jimjag/docker,mikedougherty/docker,duglin/docker,darrenstahlmsft/moby,shin-/docker.github.io,johnstep/moby-moby,maxamillion/docker,JimGalasyn/docker.github.io,resin-io/docker,cr7pt0gr4ph7/docker,harche/docker,harche/docker,joaofnfernandes/docker.github.io,sarnautov/moby,coreos/docker,hqhq/moby,raja-sami-10p/moby,laijs/moby,sarnautov/moby,estesp/docker,mtesselH/docker,sfsmithcha/docker,BSWANG/denverdino.github.io,zhuguihua/docker,Syntaxide/docker,mahak/docker,anweiss/docker.github.io,nawawi/docker,konstruktoid/docker-1,docker/docker.github.io,thaJeztah/docker.github.io,Shopify/docker,YuPengZTE/docker,docker/docker,rhatdan/storage,icaoweiwei/docker,menglingwei/denverdino.github.io,KingEmet/docker,noxiouz/docker,phiroict/docker,pramodhkp/moby,tagomoris/docker,docker/docker.github.io,13W/docker,mikebrow/docker,HuKeping/docker,joaofnfernandes/docker.github.io,eskaaren/docker,kojiromike/docker,kolyshkin/docker,thtanaka/docker,erikh/docker,pecameron/docker,yummypeng/docker,HuKeping/docker,unclejack/docker,maxamillion/docker,trebonian/docker,mahak/docker,dnephin/docker,YuPengZTE/docker,msabansal/docker,shin-/docker.github.io,cyphar/docker,djs55/docker,tmp6154/docker,tophj-ibm/docker,gnailuy/docker,sterchelen/docker,mkumatag/docker,pradipd/moby,darrenstahlmsft/moby,Morsicus/docker,johnstep/moby-moby,charleszheng44/moby,qudongfang/docker,mike1729/docker,Mokolea/docker,paralin/docker,JMesser81/docker,mtesselH/docker,moby/moby,tophj-ibm/docker,ripcurld0/moby,dmcgowan/docker,aduermael/docker.github.io,sanjeo/docker,noironetworks/docker,scotttlin/docker,amatsus/docker,trebonian/docker,mahak/docker,bdwill/docker.github.io,mixja/docker,wenchma/docker,SvenDowideit/docker,KarthikNayak/docker,portworx/docker,londoncalling/docker.github.io,cloudflare/docker,menglingwei/denverdino.github.io,bluebreezecf/docker,coolljt0725/docker,ripcurld0/moby,liaoqingwei/docker,erikstmartin/docker,sanscontext/docker.github.io,SvenDowideit/docker,erikh/docker,endophage/docker,mikedougherty/docker,LuisBosquez/docker.github.io,dgageot/docker,ibuildthecloud/docker,medallia/docker,pecameron/docker,xiaods/docker,wenchma/docker,moul/docker,jameszhan/docker,sterchelen/docker,danix800/docker.github.io,ibuildthecloud/docker,catinthesky/docker,dperny/docker,resin-io/docker,cpuguy83/docker,michelvocks/docker,dgageot/docker,BSWANG/denverdino.github.io,anweiss/docker.github.io,asbjornenge/docker,docker-zh/docker.github.io,mohmost12/docker,noxiouz/docker,darrenstahlmsft/docker,darrenstahlmsft/docker,michael-holzheu/docker,nalind/docker,afein/docker,justincormack/docker,sanscontext/docker.github.io,portworx/docker,KingEmet/docker,charleswhchan/docker,resin-io/docker,lixiaobing10051267/docker,jzwlqx/denverdino.github.io,hqhq/moby,nawawi/docker,eskaaren/docker,medallia/docker,allencloud/docker,dsheets/moby,nalind/docker,thtanaka/docker,kencochrane/docker,Mokolea/docker,moypray/docker,jlebon/docker,pecameron/docker,AkihiroSuda/docker,jwhonce/docker,YuPengZTE/docker,Ramzec/docker,brahmaroutu/docker,dgageot/docker,moby/moby,KingEmet/docker,PatrickLang/moby,laijs/docker,danyalKhaliq10p/moby,nalind/docker,tkopczynski/docker,joaofnfernandes/docker.github.io,vdemeester/docker,menglingwei/denverdino.github.io,sfsmithcha/docker,JMesser81/docker,liaoqingwei/docker,mixja/docker,AkihiroSuda/docker,shubheksha/docker.github.io,nawawi/docker,erikh/docker,docker/docker,containers/storage,johnstep/docker.github.io,vdemeester/docker,hypriot/docker,Morsicus/docker,POLJM242/docker,nghiant2710/docker,jvanz/docker,menglingwei/denverdino.github.io,xuxinkun/docker,alfred-landrum/docker,troy0820/docker.github.io,gschaetz/moby,brahmaroutu/docker,flavio/docker,tagomoris/docker,djs55/docker,haveatry/docker,imkin/moby,mohmost12/docker,dnephin/docker,erikstmartin/docker,dperny/docker,catinthesky/docker,whuwxl/docker,docker-zh/docker.github.io,rremer/moby,wenchma/docker,unclejack/docker,ndeloof/docker,bearstech/moby,scotttlin/docker,troy0820/docker.github.io,bonczj/moby-json-file-logger,ajaymdesai/docker,dnephin/docker,johnstep/moby-moby,denverdino/denverdino.github.io,shubheksha/docker.github.io,shubheksha/docker.github.io,denverdino/docker.github.io,lixiaobing10051267/docker,projectatomic/docker,estesp/docker,stevvooe/docker,phiroict/docker,kencochrane/docker,qudongfang/docker,nghiant2710/docker,ibuildthecloud/docker,dsheets/moby,trebonian/docker,charleswhchan/docker,paralin/docker,alfred-landrum/docker,bearstech/moby,Morsicus/docker,LuisBosquez/docker.github.io,srust/docker,diogomonica/docker,lixiaobing1/docker,Shopify/docker,dsau/docker,erikstmartin/docker,13W/docker,alexisbellido/docker.github.io,miminar/docker,tkopczynski/docker,BSWANG/denverdino.github.io,troy0820/docker.github.io,kojiromike/docker,cloudflare/docker,docker-zh/docker.github.io,shubheksha/docker.github.io,q384566678/docker,rremer/moby,mkumatag/docker,yosifkit/docker,phiroict/docker,mtanlee/docker,thtanaka/docker,docker-zh/docker.github.io,gnailuy/docker,endophage/docker,jvanz/docker,zhuguihua/docker,joeuo/docker.github.io,msabansal/docker,dims/docker,kolyshkin/docker,ibuildthecloud/docker,moul/docker,crosbymichael/docker,coolljt0725/docker,pradipd/moby,raja-sami-10p/moby,flavio/docker,konstruktoid/docker-upstream,13W/docker,HuKeping/docker,londoncalling/docker.github.io,djs55/docker,dccurtis/docker,twaugh/docker,BSWANG/denverdino.github.io,jzwlqx/denverdino.github.io,lixiaobing1/docker,thaJeztah/docker,crosbymichael/docker,danix800/docker.github.io,jongiddy/docker,yasiramin10p/moby,dmcgowan/docker,jthelin/docker,ColinHebert/docker,liaoqingwei/docker,denverdino/denverdino.github.io,dims/docker,alexisbellido/docker.github.io,mgoelzer/docker,gdevillele/docker.github.io,msabansal/docker,PatrickLang/moby,pradipd/moby,bonczj/moby-json-file-logger,sfsmithcha/docker,fcrisciani/docker,jzwlqx/denverdino.github.io,harche/docker,jvanz/docker,medallia/docker,jhorwit2/docker,ndeloof/docker,tophj-ibm/docker,coreos/docker,justincormack/docker,yasiramin10p/moby,whuwxl/docker,kolyshkin/moby,gdevillele/docker.github.io,naveed-jamil-tenpearls/moby,rhatdan/storage,JimGalasyn/docker.github.io,mstanleyjones/docker,denverdino/denverdino.github.io,yongtang/docker,gdevillele/docker.github.io,Syntaxide/docker,afein/docker,bonczj/moby-json-file-logger,justyntemme/docker,miminar/docker,docker/docker.github.io,bdwill/docker.github.io,scotttlin/docker,dperny/docker,eskaaren/docker,mtanlee/docker,docker/docker.github.io,gnailuy/docker,jlhawn/docker,thaJeztah/docker.github.io,jlhawn/docker,joeuo/docker.github.io,abhinavdahiya/docker,mikebrow/docker,cyphar/docker,rhatdan/docker,yongtang/docker,alexisbellido/docker.github.io,rremer/moby,yummypeng/docker,mstanleyjones/docker,thaJeztah/docker.github.io,nawawi/docker,mkumatag/docker,xiaods/docker,moul/docker,moypray/docker,Ramzec/docker,Syntaxide/docker,sanscontext/docker.github.io,gdevillele/docker.github.io,rancher/docker,xiekeyang/docker,mike1729/docker,londoncalling/docker.github.io,HideoYamauchi/docker,ffoysal/docker,stainboy/docker,xuxinkun/docker,asbjornenge/docker,moby/moby,sdurrheimer/docker,tianon/docker,yasiramin10p/moby,prertik/docker,bearstech/moby,yosifkit/docker,x1022as/docker,yosifkit/docker,dccurtis/docker,yp-engineering/docker,asbjornenge/docker,jimjag/docker,docker/docker,xiekeyang/docker,naveed-jamil-tenpearls/moby,xiaods/docker,13W/docker,aduermael/docker.github.io,moul/docker,phiroict/docker,jlebon/docker,jwhonce/docker,tophj-ibm/moby,mstanleyjones/docker,docker/docker.github.io,JimGalasyn/docker.github.io,phiroict/docker,kojiromike/docker,cr7pt0gr4ph7/docker,haveatry/docker,menglingwei/denverdino.github.io,HideoYamauchi/docker,cloudflare/docker,shubheksha/docker.github.io,Ramzec/docker,bluebreezecf/docker,johnstep/docker.github.io,containers/storage,dccurtis/docker,raja-sami-10p/moby,dmcgowan/docker,brahmaroutu/docker,pramodhkp/moby,dsau/docker,mtrmac/docker,denverdino/docker.github.io,michelvocks/docker,tonistiigi/docker,q384566678/docker,gschaetz/moby,kunalkushwaha/docker,danyalKhaliq10p/moby,tonistiigi/docker,gjaskiewicz/moby,cpuguy83/docker,vdemeester/docker,jlebon/docker,ibuildthecloud/docker,stevvooe/docker,yp-engineering/docker,x1022as/docker,stainboy/docker,miminar/docker,denverdino/docker.github.io