forked from OpenCSGs/csghub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
309 changed files
with
17,493 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SUPER_USERS=17708176693,17708176692 | ||
LEAD_SOURCES=Events,Others,Digital,Content | ||
ON_PREMISE=true | ||
SENSITIVE_CHECK=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
image: docker:24.0.6 | ||
|
||
include: | ||
- template: Security/Secret-Detection.gitlab-ci.yml | ||
|
||
variables: | ||
CI_USER: $GITLAB_USER | ||
CI_TOKEN: $GITLAB_USER_TOKEN_HIVEER | ||
GIT_DEPTH: 100 | ||
|
||
stages: | ||
- test | ||
- build | ||
|
||
# 判断是不是正确的project,正确的branch,以及是不是forked repo过来的MR | ||
.if-starhub-main-original-repo: &if-starhub-main-original-repo | ||
if: '$CI_COMMIT_REF_NAME == "starhub-main" && $CI_PROJECT_ID == "32" && $CI_MERGE_REQUEST_SOURCE_PROJECT_ID == null' | ||
|
||
starhub-build: | ||
stage: build | ||
services: | ||
- docker:24.0.6-dind | ||
tags: | ||
- linux-medium-amd64 | ||
rules: | ||
- <<: *if-starhub-main-original-repo | ||
variables: | ||
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG | ||
script: | ||
- docker login $CI_REGISTRY -u $CI_USER -p $CI_TOKEN | ||
- docker build -t $IMAGE_TAG . | ||
- docker push $IMAGE_TAG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ruby 3.2.2 | ||
nodejs 18.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM git-devops.opencsg.com:5050/product/community/open-portal/ruby-node | ||
|
||
SHELL ["/bin/bash", "-c"] | ||
RUN mkdir /myapp | ||
WORKDIR /myapp | ||
ADD . /myapp | ||
RUN yarn config set registry 'https://mirrors.huaweicloud.com/repository/npm/' | ||
RUN yarn install | ||
RUN bundle install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.