24 lines
872 B
Bash
Executable File
24 lines
872 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail
|
|
[[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
|
|
trigger-builder-nixpacks-builder-release() {
|
|
declare desc="builder-nixpacks builder-release plugin trigger"
|
|
declare trigger="builder-release"
|
|
declare BUILDER_TYPE="$1" APP="$2" IMAGE_TAG="$3"
|
|
|
|
if [[ "$BUILDER_TYPE" != "nixpacks" ]]; then
|
|
return
|
|
fi
|
|
|
|
plugn trigger pre-release-nixpacks "$APP" "$IMAGE_TAG"
|
|
|
|
local IMAGE=$(get_app_image_name "$APP" "$IMAGE_TAG")
|
|
docker-image-labeler --label=com.dokku.image-stage=release --label=com.dokku.app-name=$APP --label=org.label-schema.schema-version=1.0 --label=org.label-schema.vendor=dokku --label=dokku "$IMAGE"
|
|
plugn trigger post-release-nixpacks "$APP" "$IMAGE_TAG"
|
|
plugn trigger post-release-builder "$BUILDER_TYPE" "$APP" "$IMAGE"
|
|
}
|
|
|
|
trigger-builder-nixpacks-builder-release "$@"
|