fix: git-flow prod/test/stage (revert mistaken dev branch)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
name: backend-ci-cd
|
||||
|
||||
# CI/CD: только push git-тега (ручное тегирование на ветке prod|test|dev).
|
||||
# CI/CD: только push git-тега (ручное тегирование на ветке prod|test|stage).
|
||||
# Push в ветки и feature-ветки pipeline не запускают.
|
||||
|
||||
on:
|
||||
@@ -79,8 +79,8 @@ jobs:
|
||||
ENV="${{ needs.parse-tag.outputs.env }}"
|
||||
TAG="${{ needs.parse-tag.outputs.full_tag }}"
|
||||
case "${ENV}" in
|
||||
test|dev|prod) ;;
|
||||
*) echo "Unknown env from tag: ${ENV} (expected test|dev|prod)"; exit 1 ;;
|
||||
test|stage|prod) ;;
|
||||
*) echo "Unknown env from tag: ${ENV} (expected test|stage|prod)"; exit 1 ;;
|
||||
esac
|
||||
git clone --branch "${ENV}" --single-branch "${REPO_URL}" sova-deploy 2>/dev/null \
|
||||
|| { git clone "${REPO_URL}" sova-deploy && cd sova-deploy && git checkout -B "${ENV}"; }
|
||||
|
||||
Reference in New Issue
Block a user