Update publish.sh
Some checks failed
Test and Publish Templates / test-and-publish (push) Failing after 6s
Some checks failed
Test and Publish Templates / test-and-publish (push) Failing after 6s
This commit is contained in:
@@ -119,17 +119,17 @@ for TEMPLATE in $TEMPLATES_TO_PUBLISH; do
|
|||||||
info "Uploading $TEMPLATE to templates.dropshell.app"
|
info "Uploading $TEMPLATE to templates.dropshell.app"
|
||||||
|
|
||||||
# Always upload with :latest tag
|
# Always upload with :latest tag
|
||||||
sos templates.dropshell.app "$TARBALL" "${TEMPLATE}:latest" || die "Failed to upload $TEMPLATE:latest"
|
sos upload templates.dropshell.app "$TARBALL" "${TEMPLATE}:latest" || die "Failed to upload $TEMPLATE:latest"
|
||||||
info "Uploaded ${TEMPLATE}:latest"
|
info "Uploaded ${TEMPLATE}:latest"
|
||||||
|
|
||||||
# Also upload with specific version tag
|
# Also upload with specific version tag
|
||||||
sos templates.dropshell.app "$TARBALL" "${TEMPLATE}:${VERSION}" || die "Failed to upload $TEMPLATE:${VERSION}"
|
sos upload templates.dropshell.app "$TARBALL" "${TEMPLATE}:${VERSION}" || die "Failed to upload $TEMPLATE:${VERSION}"
|
||||||
info "Uploaded ${TEMPLATE}:${VERSION}"
|
info "Uploaded ${TEMPLATE}:${VERSION}"
|
||||||
|
|
||||||
# If we have a major version, also tag with major version only (e.g., v1)
|
# If we have a major version, also tag with major version only (e.g., v1)
|
||||||
MAJOR_VERSION=$(echo "$VERSION" | cut -d. -f1)
|
MAJOR_VERSION=$(echo "$VERSION" | cut -d. -f1)
|
||||||
if [ -n "$MAJOR_VERSION" ]; then
|
if [ -n "$MAJOR_VERSION" ]; then
|
||||||
sos templates.dropshell.app "$TARBALL" "${TEMPLATE}:v${MAJOR_VERSION}" || die "Failed to upload $TEMPLATE:v${MAJOR_VERSION}"
|
sos upload templates.dropshell.app "$TARBALL" "${TEMPLATE}:v${MAJOR_VERSION}" || die "Failed to upload $TEMPLATE:v${MAJOR_VERSION}"
|
||||||
info "Uploaded ${TEMPLATE}:v${MAJOR_VERSION}"
|
info "Uploaded ${TEMPLATE}:v${MAJOR_VERSION}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user