Skip to content
This repository was archived by the owner on Dec 28, 2023. It is now read-only.

Commit ed070f5

Browse files
tib/fix: Simplify Cloudflare Pages publish (#285)
1 parent 8d91c64 commit ed070f5

File tree

1 file changed

+2
-44
lines changed

1 file changed

+2
-44
lines changed

.circleci/config.yml

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,9 @@ jobs:
125125
- npm_install_from_cache
126126
- build
127127
- versioning
128-
- persist_to_workspace:
129-
root: _site
130-
paths:
131-
- .
132128
- docker_build_push
133129
- k8s_deploy
130+
- publish_to_pages_staging
134131
- notify_slack
135132
environment:
136133
NODE_ENV: staging
@@ -144,37 +141,14 @@ jobs:
144141
- build
145142
- versioning:
146143
version_name: production
147-
- persist_to_workspace:
148-
root: _site
149-
paths:
150-
- .
151144
- docker_build_push:
152145
docker_latest_image_tag: latest
153146
docker_image_tag: ${CIRCLE_SHA1}
154147
- k8s_deploy:
155148
k8s_namespace: "deriv-com-api-production"
156149
k8s_version: ${CIRCLE_SHA1}
157-
- notify_slack
158-
environment:
159-
NODE_ENV: production
160-
161-
publish_cloudflare_staging:
162-
docker:
163-
- image: circleci/node:16.13.1-stretch
164-
steps:
165-
- attach_workspace:
166-
at: _site
167-
- publish_to_pages_staging
168-
environment:
169-
NODE_ENV: staging
170-
171-
publish_cloudflare_production:
172-
docker:
173-
- image: circleci/node:16.13.1-stretch
174-
steps:
175-
- attach_workspace:
176-
at: _site
177150
- publish_to_pages_production
151+
- notify_slack
178152
environment:
179153
NODE_ENV: production
180154

@@ -186,13 +160,6 @@ workflows:
186160
filters:
187161
branches:
188162
only: /^master$/
189-
- publish_cloudflare_staging:
190-
context: binary-frontend-artifact-upload
191-
requires:
192-
- release_staging
193-
filters:
194-
branches:
195-
only: /^master$/
196163
release_production:
197164
jobs:
198165
- release_production:
@@ -202,12 +169,3 @@ workflows:
202169
ignore: /.*/
203170
tags:
204171
only: /^production.*/
205-
- publish_cloudflare_production:
206-
context: binary-frontend-artifact-upload
207-
requires:
208-
- release_production
209-
filters:
210-
branches:
211-
ignore: /.*/
212-
tags:
213-
only: /^production.*/

0 commit comments

Comments
 (0)