Skip to content

Commit 9ef5f27

Browse files
committed
Update .gitlab-ci.yml file
Former-commit-id: e3ff4e1ec157cd34c022e65961aaaacce3da60dc
1 parent f074648 commit 9ef5f27

File tree

1 file changed

+16
-33
lines changed

1 file changed

+16
-33
lines changed

.gitlab-ci.yml

+16-33
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ stages:
1616
- test
1717
- build
1818
- deploy:images
19-
- deploy:retagging
2019

2120
workflow:
2221
rules:
@@ -35,19 +34,27 @@ linting:
3534
- pnpm --version
3635
- pnpm install
3736
script:
38-
- pnpx eslint
37+
- pnpm run lint
3938
artifacts:
4039
expire_in: 1h
4140
paths:
4241
- node_modules
4342

44-
# No test environment right now
45-
# test:
46-
# stage: test
47-
# script:
48-
# - ember test
43+
test:
44+
stage: test
45+
before_script:
46+
- node --version
47+
- npm install -g pnpm
48+
- pnpm --version
49+
- pnpm install
50+
script:
51+
- pnpm run test
52+
artifacts:
53+
expire_in: 1h
54+
paths:
55+
- node_modules
4956

50-
.build:
57+
build:
5158
stage: build
5259
before_script:
5360
- node --version
@@ -61,38 +68,14 @@ linting:
6168
paths:
6269
- node_modules
6370
- dist
64-
65-
build-prod:
66-
extends:
67-
- .build
6871
rules:
6972
- if: '$CI_PIPELINE_SOURCE != "schedule"'
7073

71-
deploy-prod:
72-
extends:
73-
- .build-and-deploy
74-
dependencies:
75-
- build-prod
76-
variables:
77-
DOCKERHUB_TAG: 'production'
78-
rules:
79-
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH == "main"'
80-
81-
deploy-dev:
82-
extends:
83-
- .build-and-deploy
84-
dependencies:
85-
- build-prod
86-
variables:
87-
DOCKERHUB_TAG: 'dev'
88-
rules:
89-
- if: '$CI_PIPELINE_SOURCE == "push" && $CI_PIPELINE_SOURCE != "schedule" && $CI_COMMIT_BRANCH == "main"'
90-
9174
deploy-merge-request:
9275
extends:
9376
- .build-and-deploy
9477
dependencies:
95-
- build-prod
78+
- build
9679
variables:
9780
DOCKERHUB_TAG: mr-$CI_MERGE_REQUEST_IID
9881
rules:

0 commit comments

Comments
 (0)