ci(blog): publish and verify CDN assets before GitOps updates
Export the runtime image and assets together, gate deployment on verified S3 release completion, and share AWS credentials from /platform/tekton/blog in ap-southeast-2.
This commit is contained in:
1 parent
c313573442
commit
87a1d04da1
6 files changed
+206
-6
No files matched your search
+22
-2
@@ -3,13 +3,17 @@ kind: Pipeline
|
||||
metadata:
|
||||
name: blog-staging
|
||||
spec:
|
||||
description: Validate an exact staging branch revision, publish an arm64 full-stack Leptos image, then update staging GitOps.
|
||||
description: Validate an exact staging revision, publish the arm64 image and verify its S3 CDN release, then update staging GitOps.
|
||||
params:
|
||||
- name: git-revision
|
||||
type: string
|
||||
results:
|
||||
- name: image-digest
|
||||
value: $(tasks.build-arm64.results.image-digest)
|
||||
- name: cdn-release-id
|
||||
value: $(tasks.build-arm64.results.cdn-release-id)
|
||||
- name: cdn-manifest-key
|
||||
value: $(tasks.build-arm64.results.cdn-manifest-key)
|
||||
- name: gitops-commit
|
||||
value: $(tasks.update-gitops.results.gitops-commit)
|
||||
workspaces:
|
||||
@@ -53,6 +57,8 @@ spec:
|
||||
value: $(params.git-revision)
|
||||
- name: image
|
||||
value: registry.dahyeon.us/dahyeon/blog:sha-$(params.git-revision)-$(context.pipelineRun.uid)
|
||||
- name: pipeline-run-uid
|
||||
value: $(context.pipelineRun.uid)
|
||||
- name: environment
|
||||
value: staging
|
||||
workspaces:
|
||||
@@ -72,6 +78,10 @@ spec:
|
||||
value: staging
|
||||
- name: image-digest
|
||||
value: $(tasks.build-arm64.results.image-digest)
|
||||
- name: cdn-release-id
|
||||
value: $(tasks.build-arm64.results.cdn-release-id)
|
||||
- name: cdn-manifest-key
|
||||
value: $(tasks.build-arm64.results.cdn-manifest-key)
|
||||
workspaces:
|
||||
- name: source
|
||||
workspace: source
|
||||
@@ -83,13 +93,17 @@ kind: Pipeline
|
||||
metadata:
|
||||
name: blog-prod
|
||||
spec:
|
||||
description: Validate an exact prod branch revision, publish an arm64 full-stack Leptos image, then update production GitOps.
|
||||
description: Validate an exact prod revision, publish the arm64 image and verify its S3 CDN release, then update production GitOps.
|
||||
params:
|
||||
- name: git-revision
|
||||
type: string
|
||||
results:
|
||||
- name: image-digest
|
||||
value: $(tasks.build-arm64.results.image-digest)
|
||||
- name: cdn-release-id
|
||||
value: $(tasks.build-arm64.results.cdn-release-id)
|
||||
- name: cdn-manifest-key
|
||||
value: $(tasks.build-arm64.results.cdn-manifest-key)
|
||||
- name: gitops-commit
|
||||
value: $(tasks.update-gitops.results.gitops-commit)
|
||||
workspaces:
|
||||
@@ -133,6 +147,8 @@ spec:
|
||||
value: $(params.git-revision)
|
||||
- name: image
|
||||
value: registry.dahyeon.us/dahyeon/blog:sha-$(params.git-revision)-$(context.pipelineRun.uid)
|
||||
- name: pipeline-run-uid
|
||||
value: $(context.pipelineRun.uid)
|
||||
- name: environment
|
||||
value: prod
|
||||
workspaces:
|
||||
@@ -152,6 +168,10 @@ spec:
|
||||
value: prod
|
||||
- name: image-digest
|
||||
value: $(tasks.build-arm64.results.image-digest)
|
||||
- name: cdn-release-id
|
||||
value: $(tasks.build-arm64.results.cdn-release-id)
|
||||
- name: cdn-manifest-key
|
||||
value: $(tasks.build-arm64.results.cdn-manifest-key)
|
||||
workspaces:
|
||||
- name: source
|
||||
workspace: source
|
||||
|
||||
Reference in new issue
Block a user