diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 483c2e6a4..1300f5a6c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -89,12 +89,12 @@ jobs: DOMAIN="e-tib.com" PRJ="etib" - if [[ "${{ github.ref_type }}" == "branch" && "$REF" == "main" ]]; then + if [[ "$REF" == "main" ]]; then TARGET="staging" IMAGE_TAG="main-${SHORT_SHA}" ENV_FILE=".env.staging" TRAEFIK_HOST="staging.${DOMAIN}" - elif [[ "${{ github.ref_type }}" == "tag" ]]; then + elif [[ "${{ github.ref }}" == refs/tags/* ]]; then if [[ "$REF" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then TARGET="production" IMAGE_TAG="$REF"