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