Skip to content

Commit

Permalink
feat: Deploy regular CLI builds to a new preview channel (#5042)
Browse files Browse the repository at this point in the history
* feat: add preview upload

* fix: incorrect variable access

* chore: remove dry-run

* chore: limit preview release to main branch
  • Loading branch information
PeterSchafer committed Feb 8, 2024
1 parent f3f9877 commit d5e65e8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
21 changes: 18 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,8 @@ workflows:
- '/.*e2e.*/'

- release-s3:
name: upload latest
name: upload preview
deployment: preview
context: team-hammerhead-common-deploy-tokens
requires:
- Validate NPM artifacts (docker-amd64)
Expand All @@ -754,6 +755,16 @@ workflows:
branches:
only: master

- release-s3:
name: upload latest
deployment: latest
context: team-hammerhead-common-deploy-tokens
requires:
- upload preview
filters:
branches:
only: master

- release-github:
name: upload github
context: team-hammerhead-common-deploy-tokens
Expand Down Expand Up @@ -1149,14 +1160,18 @@ jobs:
SNYK_TOKEN=${TEST_SNYK_TOKEN} ./snyk woof
release-s3:
parameters:
deployment:
type: string
default: latest
executor: docker-amd64
steps:
- prepare-workspace
- aws-cli/install:
version: << pipeline.parameters.aws_version >>
- run:
name: Publish to S3
command: ./release-scripts/upload-artifacts.sh latest
name: Publish to S3 ( << parameters.deployment >> )
command: ./release-scripts/upload-artifacts.sh << parameters.deployment >>
- failed-release-notification

release-github:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ release-pre:
@echo "-- Validating artifacts"
@./release-scripts/validate-checksums.sh
@echo "-- Validating upload permissions"
@./release-scripts/upload-artifacts.sh --dry-run latest github npm
@./release-scripts/upload-artifacts.sh --dry-run preview latest github npm
@echo "-- Publishing to S3 /version"
@./release-scripts/upload-artifacts.sh version

Expand Down

0 comments on commit d5e65e8

Please sign in to comment.