add feature branch devel builds
This commit is contained in:
@@ -27,6 +27,9 @@ if [[ -z "$1" ]]; then
|
||||
target=image
|
||||
outputFmt='-o type=docker,type=registry'
|
||||
tagsuffix=':devel'
|
||||
if [[ -n "$GIT_BRANCH" ]] && [[ "x$GIT_BRANCH" != "xmaster" ]]; then
|
||||
tagsuffix="$tagsuffix-$GIT_BRANCH"
|
||||
fi
|
||||
elif [[ "x$1" = "xrelease" ]]; then
|
||||
namesuffix='.release'
|
||||
target=image
|
||||
|
||||
@@ -34,7 +34,7 @@ replaceTemplate
|
||||
if [[ -n "$1" ]]; then
|
||||
# build releases update
|
||||
make='GIT_REVISION=\$GIT_REVISION ./make_all.sh'
|
||||
upload_lines='ARG UPLOAD_URL\nARG UPLOAD_CREDENTIALS\nARG UPLOAD_OS\nRUN if [ -n "\$UPLOAD_URL" ] \&\& [ -n "\$UPLOAD_CREDENTIALS" ]; then for img in ebusd-*.deb; do echo -n "upload \$img: "; curl -fsSk -u "\$UPLOAD_CREDENTIALS" -X POST --data-binary "@\$img" -H "Content-Type: application/octet-stream" "\$UPLOAD_URL/\$img?a=\$EBUSD_ARCH\&o=\$UPLOAD_OS\&v=\$EBUSD_VERSION" || echo "failed"; done; fi'
|
||||
upload_lines='ARG UPLOAD_URL\nARG UPLOAD_CREDENTIALS\nARG UPLOAD_OS\nRUN if [ -n "\$UPLOAD_URL" ] \&\& [ -n "\$UPLOAD_CREDENTIALS" ]; then for img in ebusd-*.deb; do echo -n "upload \$img: "; curl -fsSk -u "\$UPLOAD_CREDENTIALS" -X POST --data-binary "@\$img" -H "Content-Type: application/octet-stream" "\$UPLOAD_URL/\$img?a=\$EBUSD_ARCH\&o=\$UPLOAD_OS\&v=\$EBUSD_VERSION&b=$GIT_BRANCH" || echo "failed"; done; fi'
|
||||
upload_lines+='\n\n\nFROM scratch as deb\nCOPY --from=build /build/*.deb /'
|
||||
namesuffix='.build'
|
||||
replaceTemplate
|
||||
|
||||
Reference in New Issue
Block a user