validated ci config
This commit is contained in:
parent
a155d0e414
commit
d28a2b22c5
|
@ -9,6 +9,7 @@ variables:
|
|||
|
||||
SRC_DIR: ./game
|
||||
BUILD_DIR: ./game/Build
|
||||
DEV_BRANCH: feature/cd
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -20,15 +21,10 @@ build:
|
|||
paths:
|
||||
- $BUILD_DIR
|
||||
|
||||
.deploy: &deploy
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build
|
||||
|
||||
deploy-dev:
|
||||
<<: *deploy
|
||||
stage: deploy
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == "feature/cd"
|
||||
- if: $CI_COMMIT_BRANCH == $DEV_BRANCH
|
||||
variables:
|
||||
ITCH_USER: "cyndrdev"
|
||||
ITCH_GAME: "revival-internal-track"
|
||||
|
@ -40,10 +36,9 @@ deploy-dev:
|
|||
- build
|
||||
|
||||
deploy-release:
|
||||
<<: *deploy
|
||||
stage: deploy
|
||||
rules:
|
||||
- if: $CI_COMMIT_TAG
|
||||
- if: $CI_COMMIT_BRANCH ~= "feature/cd"
|
||||
- if: $CI_COMMIT_TAG && $CI_COMMIT_BRANCH != $DEV_BRANCH
|
||||
variables:
|
||||
ITCH_USER: "cyndrdev"
|
||||
ITCH_GAME: "revival"
|
||||
|
|
Loading…
Reference in New Issue