validated ci config

This commit is contained in:
Cat Flynn 2021-01-29 18:46:49 +00:00
parent a155d0e414
commit d28a2b22c5
1 changed files with 5 additions and 10 deletions

View File

@ -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"