Fix duplicate CI
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -18,6 +18,8 @@ build:
|
|||||||
- npm run postinstall
|
- npm run postinstall
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- npm run build
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||||
|
|
||||||
compile:
|
compile:
|
||||||
image: reactnativecommunity/react-native-android
|
image: reactnativecommunity/react-native-android
|
||||||
@@ -43,7 +45,7 @@ compile:
|
|||||||
reports:
|
reports:
|
||||||
dotenv: job.env
|
dotenv: job.env
|
||||||
rules:
|
rules:
|
||||||
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: reactnativecommunity/react-native-android
|
image: reactnativecommunity/react-native-android
|
||||||
@@ -60,6 +62,8 @@ test:
|
|||||||
- npm run postinstall
|
- npm run postinstall
|
||||||
script:
|
script:
|
||||||
- npm run test
|
- npm run test
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
image: reactnativecommunity/react-native-android
|
image: reactnativecommunity/react-native-android
|
||||||
@@ -76,6 +80,8 @@ lint:
|
|||||||
- npm run postinstall
|
- npm run postinstall
|
||||||
script:
|
script:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "push"'
|
||||||
|
|
||||||
release:
|
release:
|
||||||
image: registry.gitlab.com/gitlab-org/release-cli
|
image: registry.gitlab.com/gitlab-org/release-cli
|
||||||
@@ -95,7 +101,7 @@ release:
|
|||||||
- name: "app-release.apk"
|
- name: "app-release.apk"
|
||||||
url: "https://git.karaolidis.com/karaolidis/terminally-online/-/jobs/$JOB_ID/artifacts/raw/android/app/build/outputs/apk/release/app-release.apk"
|
url: "https://git.karaolidis.com/karaolidis/terminally-online/-/jobs/$JOB_ID/artifacts/raw/android/app/build/outputs/apk/release/app-release.apk"
|
||||||
rules:
|
rules:
|
||||||
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
|
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- template: Security/SAST.gitlab-ci.yml
|
- template: Security/SAST.gitlab-ci.yml
|
||||||
|
Reference in New Issue
Block a user