Skip to content

Commit e28762a

Browse files
authored
Merge pull request #4794 from coralproject/hotfix/disable-ci-until-security-leak-resolved
[hotfix] disable CI temporarily
2 parents 9516e35 + 4e261d0 commit e28762a

File tree

2 files changed

+172
-172
lines changed

2 files changed

+172
-172
lines changed

.github/workflows/build-and-test.yml

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -97,34 +97,34 @@ jobs:
9797
password: ${{ secrets.DOCKERHUB_PASSWORD }}
9898
- name: Define SHORT_SHA with commit short sha
9999
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
100-
# Build tag push the image after a merge to develop
101-
- name: Build and Push (develop)
102-
if: github.ref == 'refs/heads/develop' || github.ref
103-
run: |
104-
docker buildx build \
105-
--platform linux/amd64 \
106-
--build-arg REVISION_HASH=${GITHUB_SHA} \
107-
--tag ${{ env.IMAGE_REPOSITORY }}:develop-latest-amd64 \
108-
--cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-develop-amd64 \
109-
--cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-develop-amd64 \
110-
--push \
111-
--provenance=false \
112-
--sbom=false \
113-
.
100+
# # Build tag push the image after a merge to develop
101+
# - name: Build and Push (develop)
102+
# if: github.ref == 'refs/heads/develop' || github.ref
103+
# run: |
104+
# docker buildx build \
105+
# --platform linux/amd64 \
106+
# --build-arg REVISION_HASH=${GITHUB_SHA} \
107+
# --tag ${{ env.IMAGE_REPOSITORY }}:develop-latest-amd64 \
108+
# --cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-develop-amd64 \
109+
# --cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-develop-amd64 \
110+
# --push \
111+
# --provenance=false \
112+
# --sbom=false \
113+
# .
114114
# Build tag push the release candidate image when the branch name begins with release-
115-
- name: Build and Push (release)
116-
if: startsWith( github.ref, 'refs/heads/release-')
117-
run: |
118-
docker buildx build \
119-
--platform linux/amd64 \
120-
--build-arg REVISION_HASH=${GITHUB_SHA} \
121-
--tag ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-amd64 \
122-
--cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-release-amd64 \
123-
--cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-release-amd64 \
124-
--push \
125-
--provenance=false \
126-
--sbom=false \
127-
.
115+
# - name: Build and Push (release)
116+
# if: startsWith( github.ref, 'refs/heads/release-')
117+
# run: |
118+
# docker buildx build \
119+
# --platform linux/amd64 \
120+
# --build-arg REVISION_HASH=${GITHUB_SHA} \
121+
# --tag ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-amd64 \
122+
# --cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-release-amd64 \
123+
# --cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-release-amd64 \
124+
# --push \
125+
# --provenance=false \
126+
# --sbom=false \
127+
# .
128128
build-arm64:
129129
name: Build arm64
130130
runs-on: coral-ci-arm
@@ -153,34 +153,34 @@ jobs:
153153
password: ${{ secrets.DOCKERHUB_PASSWORD }}
154154
- name: Define SHORT_SHA with commit short sha
155155
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
156-
# Build for develop branch using native docker buildx
157-
- name: Build and Push (develop)
158-
if: github.ref == 'refs/heads/develop'
159-
run: |
160-
docker buildx build \
161-
--platform linux/arm64 \
162-
--build-arg REVISION_HASH=${GITHUB_SHA} \
163-
--tag ${{ env.IMAGE_REPOSITORY }}:develop-latest-arm64 \
164-
--cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-develop-arm64 \
165-
--cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-develop-arm64 \
166-
--push \
167-
--provenance=false \
168-
--sbom=false \
169-
.
156+
# # Build for develop branch using native docker buildx
157+
# - name: Build and Push (develop)
158+
# if: github.ref == 'refs/heads/develop'
159+
# run: |
160+
# docker buildx build \
161+
# --platform linux/arm64 \
162+
# --build-arg REVISION_HASH=${GITHUB_SHA} \
163+
# --tag ${{ env.IMAGE_REPOSITORY }}:develop-latest-arm64 \
164+
# --cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-develop-arm64 \
165+
# --cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-develop-arm64 \
166+
# --push \
167+
# --provenance=false \
168+
# --sbom=false \
169+
# .
170170
# Build tag push the release candidate image when the branch name begins with release-
171-
- name: Build and Push (release)
172-
if: startsWith( github.ref, 'refs/heads/release-')
173-
run: |
174-
docker buildx build \
175-
--platform linux/arm64 \
176-
--build-arg REVISION_HASH=${GITHUB_SHA} \
177-
--tag ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-arm64 \
178-
--cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-release-arm64 \
179-
--cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-release-arm64 \
180-
--push \
181-
--provenance=false \
182-
--sbom=false \
183-
.
171+
# - name: Build and Push (release)
172+
# if: startsWith( github.ref, 'refs/heads/release-')
173+
# run: |
174+
# docker buildx build \
175+
# --platform linux/arm64 \
176+
# --build-arg REVISION_HASH=${GITHUB_SHA} \
177+
# --tag ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-arm64 \
178+
# --cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-release-arm64 \
179+
# --cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-release-arm64 \
180+
# --push \
181+
# --provenance=false \
182+
# --sbom=false \
183+
# .
184184
create-manifest:
185185
name: Create Manifest
186186
needs: [build-arm64, build-amd64]
@@ -199,17 +199,17 @@ jobs:
199199
registry: us-east1-docker.pkg.dev
200200
username: _json_key
201201
password: ${{ secrets.GAR_JSON_KEY }}
202-
- name: Create and Push Manifest for develop branch
203-
if: github.ref == 'refs/heads/develop'
204-
run: |
205-
docker manifest create ${{ env.IMAGE_REPOSITORY }}:develop-latest \
206-
--amend ${{ env.IMAGE_REPOSITORY }}:develop-latest-amd64 \
207-
--amend ${{ env.IMAGE_REPOSITORY }}:develop-latest-arm64
208-
docker manifest push ${{ env.IMAGE_REPOSITORY }}:develop-latest
209-
- name: Create and Push Manifest for release branches
210-
if: startsWith( github.ref, 'refs/heads/release-')
211-
run: |
212-
docker manifest create ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }} \
213-
--amend ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-amd64 \
214-
--amend ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-arm64
215-
docker manifest push ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}
202+
# - name: Create and Push Manifest for develop branch
203+
# if: github.ref == 'refs/heads/develop'
204+
# run: |
205+
# docker manifest create ${{ env.IMAGE_REPOSITORY }}:develop-latest \
206+
# --amend ${{ env.IMAGE_REPOSITORY }}:develop-latest-amd64 \
207+
# --amend ${{ env.IMAGE_REPOSITORY }}:develop-latest-arm64
208+
# docker manifest push ${{ env.IMAGE_REPOSITORY }}:develop-latest
209+
# - name: Create and Push Manifest for release branches
210+
# if: startsWith( github.ref, 'refs/heads/release-')
211+
# run: |
212+
# docker manifest create ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }} \
213+
# --amend ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-amd64 \
214+
# --amend ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}-arm64
215+
# docker manifest push ${{ env.IMAGE_REPOSITORY }}:${{ github.ref_name }}-${{ env.SHORT_SHA }}

.github/workflows/build-test-deploy.yml

Lines changed: 104 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -108,42 +108,42 @@ jobs:
108108
echo "MAJOR_TAG=${MAJOR}" >> $GITHUB_ENV
109109
echo "MINOR_TAG=${MAJOR}.${MINOR}" >> $GITHUB_ENV
110110
echo "PATCH_TAG=${MAJOR}.${MINOR}.${PATCH}" >> $GITHUB_ENV
111-
- name: Build, Tag, Push Major Tag
112-
run: |
113-
docker buildx build \
114-
--platform linux/amd64 \
115-
--build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
116-
--tag ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }}-amd64 \
117-
--cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-major-amd64 \
118-
--cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-major-amd64 \
119-
--push \
120-
--provenance=false \
121-
--sbom=false \
122-
.
123-
- name: Build, Tag, Push Minor Tag
124-
run: |
125-
docker buildx build \
126-
--platform linux/amd64 \
127-
--build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
128-
--tag ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }}-amd64 \
129-
--cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-minor-amd64 \
130-
--cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-minor-amd64 \
131-
--push \
132-
--provenance=false \
133-
--sbom=false \
134-
.
135-
- name: Build, Tag, Push Patch Tag
136-
run: |
137-
docker buildx build \
138-
--platform linux/amd64 \
139-
--build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
140-
--tag ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }}-amd64 \
141-
--cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-patch-amd64 \
142-
--cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-patch-amd64 \
143-
--push \
144-
--provenance=false \
145-
--sbom=false \
146-
.
111+
# - name: Build, Tag, Push Major Tag
112+
# run: |
113+
# docker buildx build \
114+
# --platform linux/amd64 \
115+
# --build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
116+
# --tag ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }}-amd64 \
117+
# --cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-major-amd64 \
118+
# --cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-major-amd64 \
119+
# --push \
120+
# --provenance=false \
121+
# --sbom=false \
122+
# .
123+
# - name: Build, Tag, Push Minor Tag
124+
# run: |
125+
# docker buildx build \
126+
# --platform linux/amd64 \
127+
# --build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
128+
# --tag ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }}-amd64 \
129+
# --cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-minor-amd64 \
130+
# --cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-minor-amd64 \
131+
# --push \
132+
# --provenance=false \
133+
# --sbom=false \
134+
# .
135+
# - name: Build, Tag, Push Patch Tag
136+
# run: |
137+
# docker buildx build \
138+
# --platform linux/amd64 \
139+
# --build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
140+
# --tag ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }}-amd64 \
141+
# --cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-patch-amd64 \
142+
# --cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-patch-amd64 \
143+
# --push \
144+
# --provenance=false \
145+
# --sbom=false \
146+
# .
147147

148148
build-arm64:
149149
name: Build arm64
@@ -189,42 +189,42 @@ jobs:
189189
echo "MAJOR_TAG=${MAJOR}" >> $GITHUB_ENV
190190
echo "MINOR_TAG=${MAJOR}.${MINOR}" >> $GITHUB_ENV
191191
echo "PATCH_TAG=${MAJOR}.${MINOR}.${PATCH}" >> $GITHUB_ENV
192-
- name: Build, Tag, Push Major Tag
193-
run: |
194-
docker buildx build \
195-
--platform linux/arm64 \
196-
--build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
197-
--tag ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }}-arm64 \
198-
--cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-major-arm64 \
199-
--cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-major-arm64 \
200-
--push \
201-
--provenance=false \
202-
--sbom=false \
203-
.
204-
- name: Build, Tag, Push Minor Tag
205-
run: |
206-
docker buildx build \
207-
--platform linux/arm64 \
208-
--build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
209-
--tag ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }}-arm64 \
210-
--cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-minor-arm64 \
211-
--cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-minor-arm64 \
212-
--push \
213-
--provenance=false \
214-
--sbom=false \
215-
.
216-
- name: Build, Tag, Push Patch Tag
217-
run: |
218-
docker buildx build \
219-
--platform linux/arm64 \
220-
--build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
221-
--tag ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }}-arm64 \
222-
--cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-patch-arm64 \
223-
--cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-patch-arm64 \
224-
--push \
225-
--provenance=false \
226-
--sbom=false \
227-
.
192+
# - name: Build, Tag, Push Major Tag
193+
# run: |
194+
# docker buildx build \
195+
# --platform linux/arm64 \
196+
# --build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
197+
# --tag ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }}-arm64 \
198+
# --cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-major-arm64 \
199+
# --cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-major-arm64 \
200+
# --push \
201+
# --provenance=false \
202+
# --sbom=false \
203+
# .
204+
# - name: Build, Tag, Push Minor Tag
205+
# run: |
206+
# docker buildx build \
207+
# --platform linux/arm64 \
208+
# --build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
209+
# --tag ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }}-arm64 \
210+
# --cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-minor-arm64 \
211+
# --cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-minor-arm64 \
212+
# --push \
213+
# --provenance=false \
214+
# --sbom=false \
215+
# .
216+
# - name: Build, Tag, Push Patch Tag
217+
# run: |
218+
# docker buildx build \
219+
# --platform linux/arm64 \
220+
# --build-arg REVISION_HASH=${{ env.GITHUB_SHA }} \
221+
# --tag ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }}-arm64 \
222+
# --cache-from type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-patch-arm64 \
223+
# --cache-to type=registry,ref=${{ env.IMAGE_CACHE_REPOSITORY }}:cache-patch-arm64 \
224+
# --push \
225+
# --provenance=false \
226+
# --sbom=false \
227+
# .
228228

229229
create-manifest:
230230
name: Create Manifest
@@ -256,24 +256,24 @@ jobs:
256256
echo "MAJOR_TAG=${MAJOR}" >> $GITHUB_ENV
257257
echo "MINOR_TAG=${MAJOR}.${MINOR}" >> $GITHUB_ENV
258258
echo "PATCH_TAG=${MAJOR}.${MINOR}.${PATCH}" >> $GITHUB_ENV
259-
- name: Create and Push Manifest for Major Tag
260-
run: |
261-
docker manifest create ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }} \
262-
--amend ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }}-amd64 \
263-
--amend ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }}-arm64
264-
docker manifest push ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }}
265-
- name: Create and Push Manifest for Minor Tag
266-
run: |
267-
docker manifest create ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }} \
268-
--amend ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }}-amd64 \
269-
--amend ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }}-arm64
270-
docker manifest push ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }}
271-
- name: Create and Push Manifest for Patch Tag
272-
run: |
273-
docker manifest create ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }} \
274-
--amend ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }}-amd64 \
275-
--amend ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }}-arm64
276-
docker manifest push ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }}
259+
# - name: Create and Push Manifest for Major Tag
260+
# run: |
261+
# docker manifest create ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }} \
262+
# --amend ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }}-amd64 \
263+
# --amend ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }}-arm64
264+
# docker manifest push ${{ env.IMAGE_REPOSITORY }}:${{ env.MAJOR_TAG }}
265+
# - name: Create and Push Manifest for Minor Tag
266+
# run: |
267+
# docker manifest create ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }} \
268+
# --amend ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }}-amd64 \
269+
# --amend ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }}-arm64
270+
# docker manifest push ${{ env.IMAGE_REPOSITORY }}:${{ env.MINOR_TAG }}
271+
# - name: Create and Push Manifest for Patch Tag
272+
# run: |
273+
# docker manifest create ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }} \
274+
# --amend ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }}-amd64 \
275+
# --amend ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }}-arm64
276+
# docker manifest push ${{ env.IMAGE_REPOSITORY }}:${{ env.PATCH_TAG }}
277277

278278
deploy-assets:
279279
name: Deploy Assets
@@ -304,17 +304,17 @@ jobs:
304304
echo "MAJOR_TAG=${MAJOR}" >> $GITHUB_ENV
305305
echo "MINOR_TAG=${MAJOR}.${MINOR}" >> $GITHUB_ENV
306306
echo "PATCH_TAG=${MAJOR}.${MINOR}.${PATCH}" >> $GITHUB_ENV
307-
- name: Deploy Static Assets to GCS Bucket
308-
run: |
309-
CONTAINER_ID=$(docker create "coralproject/talk:${PATCH_TAG}")
310-
docker cp "${CONTAINER_ID}:/usr/src/app/client/dist/static" static/
311-
docker rm "${CONTAINER_ID}"
312-
find ./static -type f -name "*.gz" -print -delete
313-
gsutil -m -h "Cache-Control: public, max-age=86400, immutable" cp -r -z "js,css,map,txt,json" ./static/** "gs://${GOOGLE_CLOUD_BUCKET}/${PATCH_TAG}/"
314-
- name: Upload to Sentry
315-
run: |
316-
CONTAINER_ID=$(docker create "coralproject/talk:${PATCH_TAG}")
317-
docker cp "${CONTAINER_ID}:/usr/src/app/client/dist" dist/
318-
docker rm "${CONTAINER_ID}"
319-
npx @sentry/cli -V
320-
npx @sentry/cli releases files "coral@${PATCH_TAG}" upload-sourcemaps ./dist --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }}
307+
# - name: Deploy Static Assets to GCS Bucket
308+
# run: |
309+
# CONTAINER_ID=$(docker create "coralproject/talk:${PATCH_TAG}")
310+
# docker cp "${CONTAINER_ID}:/usr/src/app/client/dist/static" static/
311+
# docker rm "${CONTAINER_ID}"
312+
# find ./static -type f -name "*.gz" -print -delete
313+
# gsutil -m -h "Cache-Control: public, max-age=86400, immutable" cp -r -z "js,css,map,txt,json" ./static/** "gs://${GOOGLE_CLOUD_BUCKET}/${PATCH_TAG}/"
314+
# - name: Upload to Sentry
315+
# run: |
316+
# CONTAINER_ID=$(docker create "coralproject/talk:${PATCH_TAG}")
317+
# docker cp "${CONTAINER_ID}:/usr/src/app/client/dist" dist/
318+
# docker rm "${CONTAINER_ID}"
319+
# npx @sentry/cli -V
320+
# npx @sentry/cli releases files "coral@${PATCH_TAG}" upload-sourcemaps ./dist --auth-token ${{ secrets.SENTRY_AUTH_TOKEN }}

0 commit comments

Comments
 (0)