Update upload-binaries.sh
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# release or dev
|
# release or dev
|
||||||
CHANNEL=$1
|
TAG=$1
|
||||||
# latest or latest-dev (or a specific version)
|
# latest or latest-dev (or a specific version)
|
||||||
BINARIES_IMAGE=$2
|
BINARIES_IMAGE=$2
|
||||||
# passed as komodo variable
|
# passed as komodo variable
|
||||||
@ -9,7 +9,7 @@ KOMODO_VERSION=$3
|
|||||||
# passed as komodo variable
|
# passed as komodo variable
|
||||||
KOMODO_GIT_TOKEN=$4
|
KOMODO_GIT_TOKEN=$4
|
||||||
|
|
||||||
echo "Channel: ${CHANNEL}"
|
echo "Tag: ${TAG}"
|
||||||
echo "Image: ${BINARIES_IMAGE}"
|
echo "Image: ${BINARIES_IMAGE}"
|
||||||
echo "Version: ${KOMODO_VERSION}"
|
echo "Version: ${KOMODO_VERSION}"
|
||||||
|
|
||||||
@ -27,10 +27,10 @@ docker cp $aarch64_id:/periphery ./periphery-aarch64
|
|||||||
|
|
||||||
curl --user mbecker20:$KOMODO_GIT_TOKEN \
|
curl --user mbecker20:$KOMODO_GIT_TOKEN \
|
||||||
--upload-file ./periphery-x86_64 \
|
--upload-file ./periphery-x86_64 \
|
||||||
https://git.komo.do/api/packages/moghtech/generic/periphery/$KOMODO_VERSION-$CHANNEL/periphery-x86_64
|
https://git.komo.do/api/packages/moghtech/generic/periphery/$KOMODO_VERSION-$TAG/periphery-x86_64
|
||||||
curl --user mbecker20:$KOMODO_GIT_TOKEN \
|
curl --user mbecker20:$KOMODO_GIT_TOKEN \
|
||||||
--upload-file ./periphery-aarch64 \
|
--upload-file ./periphery-aarch64 \
|
||||||
https://git.komo.do/api/packages/moghtech/generic/periphery/$KOMODO_VERSION-$CHANNEL/periphery-aarch64
|
https://git.komo.do/api/packages/moghtech/generic/periphery/$KOMODO_VERSION-$TAG/periphery-aarch64
|
||||||
|
|
||||||
docker container rm $x86_64_id
|
docker container rm $x86_64_id
|
||||||
docker container rm $aarch64_id
|
docker container rm $aarch64_id
|
Reference in New Issue
Block a user