File tree Expand file tree Collapse file tree 4 files changed +2
-6
lines changed
Expand file tree Collapse file tree 4 files changed +2
-6
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33paddlex_version=" $( cat ../../../paddlex/.version) "
44
55for device_type in ' gpu' ' cpu' ; do
6- version=" $( cat " ${device_type} _version.txt" ) "
76 docker rmi \
87 " ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:paddlex${paddlex_version% .* } -${device_type} " \
9- " ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:${version} -paddlex ${paddlex_version} -${device_type} " \
8+ " ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:$( git rev-parse --short HEAD ) -${device_type} " \
109 " ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:latest-${device_type} "
1110done
Original file line number Diff line number Diff line change 33paddlex_version=" $( cat ../../../paddlex/.version) "
44
55for device_type in ' gpu' ' cpu' ; do
6- version=" $( cat " ${device_type} _version.txt" ) "
76 docker push " ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:latest-${device_type} "
8- for tag in " ${version} -paddlex ${paddlex_version} -${device_type} " " paddlex${paddlex_version% .* } -${device_type} " ; do
7+ for tag in " $( git rev-parse --short HEAD ) -${device_type} " " paddlex${paddlex_version% .* } -${device_type} " ; do
98 docker tag " ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:latest-${device_type} " " ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:${tag} "
109 docker push " ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:${tag} "
1110 done
You can’t perform that action at this time.
0 commit comments