Skip to content

Commit

Permalink
push all to gitlab, only run pipeline if branch is beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikke Schirén committed Jan 17, 2024
1 parent 761ad81 commit 45b2a6a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ variables:

stages:
- build

image:build:release:
stage: build
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
- .next/cache/
rules:
- if: $CI_COMMIT_BRANCH
- if: $CI_COMMIT_BRANCH == "beta"
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
Expand All @@ -30,6 +34,11 @@ image:build:release:

image:build:tagged:
stage: build
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
- .next/cache/
rules:
- if: $CI_COMMIT_TAG
image:
Expand Down

0 comments on commit 45b2a6a

Please sign in to comment.