Skip to content

Commit 764b9ad

Browse files
committed
Update config
1 parent 65ba8ac commit 764b9ad

1 file changed

Lines changed: 13 additions & 46 deletions

File tree

.circleci/config.yml

Lines changed: 13 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ executors:
44
arm:
55
machine:
66
image: ubuntu-2004:current
7+
docker_layer_caching: true
78
resource_class: arm.medium
89

910
orbs:
@@ -24,23 +25,14 @@ jobs:
2425
paths:
2526
- .
2627

27-
lint:
28+
server-build-and-publish:
2829
executor: arm
2930
steps:
30-
- node/install:
31-
install-yarn: true
32-
- attach_workspace:
33-
at: ~/project
34-
- run: yarn turbo:lint
35-
36-
push-test:
37-
executor: arm
38-
steps:
39-
- node/install:
40-
install-yarn: true
4131
- attach_workspace:
4232
at: ~/project
43-
- run: yarn workspace push test
33+
- run: docker build -t ghcr.io/nzws/knzklive2-server:$TAG-arm64 -f ./apps/server/Dockerfile .
34+
- run: echo $GHCR_TOKEN | docker login ghcr.io -u $GHCR_USER --password-stdin
35+
- run: docker push ghcr.io/nzws/knzklive2-server:$TAG-arm64
4436

4537
push-build-and-publish:
4638
executor: arm
@@ -51,15 +43,6 @@ jobs:
5143
- run: echo $GHCR_TOKEN | docker login ghcr.io -u $GHCR_USER --password-stdin
5244
- run: docker push ghcr.io/nzws/knzklive2-push:$TAG-arm64
5345

54-
video-test:
55-
executor: arm
56-
steps:
57-
- node/install:
58-
install-yarn: true
59-
- attach_workspace:
60-
at: ~/project
61-
- run: yarn workspace video test
62-
6346
video-build-and-publish:
6447
executor: arm
6548
steps:
@@ -77,31 +60,23 @@ workflows:
7760
branches:
7861
only: main
7962

80-
- lint:
81-
requires:
82-
- setup
83-
84-
- push-test:
63+
- server-build-and-publish:
64+
pre-steps:
65+
- run: echo 'export TAG=staging' >> "$BASH_ENV"
8566
requires:
8667
- setup
8768

8869
- push-build-and-publish:
8970
pre-steps:
9071
- run: echo 'export TAG=staging' >> "$BASH_ENV"
91-
requires:
92-
- lint
93-
- push-test
94-
95-
- video-test:
9672
requires:
9773
- setup
9874

9975
- video-build-and-publish:
10076
pre-steps:
10177
- run: echo 'export TAG=staging' >> "$BASH_ENV"
10278
requires:
103-
- lint
104-
- video-test
79+
- setup
10580

10681
production:
10782
jobs:
@@ -110,28 +85,20 @@ workflows:
11085
branches:
11186
only: production
11287

113-
- lint:
114-
requires:
115-
- setup
116-
117-
- push-test:
88+
- server-build-and-publish:
89+
pre-steps:
90+
- run: echo 'export TAG=latest' >> "$BASH_ENV"
11891
requires:
11992
- setup
12093

12194
- push-build-and-publish:
12295
pre-steps:
12396
- run: echo 'export TAG=latest' >> "$BASH_ENV"
124-
requires:
125-
- lint
126-
- push-test
127-
128-
- video-test:
12997
requires:
13098
- setup
13199

132100
- video-build-and-publish:
133101
pre-steps:
134102
- run: echo 'export TAG=latest' >> "$BASH_ENV"
135103
requires:
136-
- lint
137-
- video-test
104+
- setup

0 commit comments

Comments
 (0)