fix(ci): align backend image with deployment
This commit is contained in:
@@ -46,7 +46,8 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
REPOSITORY_PATH="${RAW_REPOSITORY#/}"
|
REPOSITORY_PATH="${RAW_REPOSITORY#/}"
|
||||||
IMAGE_REPOSITORY_PATH="$(printf '%s' "$REPOSITORY_PATH" | tr '[:upper:]' '[:lower:]')"
|
IMAGE_OWNER="${REPOSITORY_PATH%%/*}"
|
||||||
|
IMAGE_REPOSITORY_PATH="$(printf '%s' "${IMAGE_OWNER}/tjwater-backend" | tr '[:upper:]' '[:lower:]')"
|
||||||
IMAGE_NAME="${REGISTRY_HOST}/${IMAGE_REPOSITORY_PATH}"
|
IMAGE_NAME="${REGISTRY_HOST}/${IMAGE_REPOSITORY_PATH}"
|
||||||
IMAGE_TAG="${RAW_REF_NAME}"
|
IMAGE_TAG="${RAW_REF_NAME}"
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ if [[ "${1:-}" == "-h" || "${1:-}" == "--help" ]]; then
|
|||||||
echo " bash scripts/trigger-gitea-pipeline.sh"
|
echo " bash scripts/trigger-gitea-pipeline.sh"
|
||||||
echo " bash scripts/trigger-gitea-pipeline.sh origin latest"
|
echo " bash scripts/trigger-gitea-pipeline.sh origin latest"
|
||||||
echo " bash scripts/trigger-gitea-pipeline.sh gitea latest"
|
echo " bash scripts/trigger-gitea-pipeline.sh gitea latest"
|
||||||
echo " bash scripts/trigger-gitea-pipeline.sh origin v2026.06.09.1"
|
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -30,6 +29,11 @@ resolve_default_remote() {
|
|||||||
REMOTE="${1:-}"
|
REMOTE="${1:-}"
|
||||||
TAG="${2:-latest}"
|
TAG="${2:-latest}"
|
||||||
|
|
||||||
|
if [[ "$TAG" != "latest" ]]; then
|
||||||
|
echo "[ERROR] This deployment only supports the 'latest' tag."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if ! git rev-parse --git-dir >/dev/null 2>&1; then
|
if ! git rev-parse --git-dir >/dev/null 2>&1; then
|
||||||
echo "[ERROR] Current directory is not a git repository."
|
echo "[ERROR] Current directory is not a git repository."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user