-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updates to node v16.20.2 to resolve a high priority vulnerability (#2571) Co-authored-by: Justin Wilaby <[email protected]> * fix: remove unneeded pricing language for teams (#2575) * fix: remove unneeded pricing language for teams * fix: remove tests related to unneeded pricing language * chore: add windows pack, upload, and promote scripts to workflows (#2573) * chore: add pack:win and upload:win scripts to package.json * chore: add pack-and-upload-windows to pack-upload workflow * chore: add promotion of windows installer to promote workflow * chore: remove rollback automation (#2576) * chore: remove homebrew rollback script * chore: remove rollback workflow * chore: comment out windows promote task for now * chore: comment out pack-and-upload-windows job for now * chore: remove windows name from package.json for now * test: update run-v5 integration test (#2587) * fix: bump @oclif/plugin-update to a version that doesn't delete the CLI (#2585) * fix: bump @oclif/plugin-update to a version that doesn't delete the CLI * fix: another integration test due to api bug * chore: add workflows and scripts for uploading to and downloading from stampy (#2586) * chore: add workflow to transfer signed windows installer to CLI s3 bucket * chore: add workflow to clean up stampy buckets * chore: uncomment pack-and-upload-windows job * chore: add workflow to promote windows installer to stable * chore: add name for Windows installer to package.json * chore: add workflow for uploading windows installers to stampy * chore: update file permissions on script files * chore: add environment for access to stampy secrets * chore: change environment name to title case * chore: move pack and upload windows scripts to pack-upload workflow and add root * chore: move pack windows script to separate workflow and update oclif version (#2593) * chore: move pack windows job to separate workflow * chore: upgrade oclif and fix command * chore: upgrade to oclif 4.3.6 * chore: remove node setup --------- Co-authored-by: Justin Wilaby <[email protected]> Co-authored-by: Justin Wilaby <[email protected]> Co-authored-by: RyanDagg <[email protected]>
- Loading branch information
1 parent
9e25038
commit 7ca66e3
Showing
18 changed files
with
2,074 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Empty Stampy signed and unsigned buckets | ||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
copy-to-stable: | ||
runs-on: ubuntu-latest | ||
environment: Stampy | ||
steps: | ||
- name: Empty Stampy signed and unsigned buckets | ||
env: | ||
STAMPY_ARN: ${{ secrets.STAMPY_ARN }} | ||
STAMPY_UNSIGNED_BUCKET: ${{ secrets.STAMPY_UNSIGNED_BUCKET }} | ||
STAMPY_SIGNED_BUCKET: ${{ secrets.STAMPY_SIGNED_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | ||
AWS_EC2_METADATA_DISABLED: true | ||
run: | | ||
ACCOUNT_ID=$(aws sts get-caller-identity | jq -r '.Account') | ||
TEMP_ROLE=$(aws sts assume-role --role-arn $STAMPY_ARN --role-session-name artifact-signing) | ||
export AWS_ACCESS_KEY_ID=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.AccessKeyId') | ||
export AWS_SECRET_ACCESS_KEY=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SecretAccessKey') | ||
export AWS_SESSION_TOKEN=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SessionToken') | ||
node scripts/empty-stampy-buckets.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Get signed installers from Stampy | ||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
get-signed-from-stampy: | ||
runs-on: ubuntu-latest | ||
environment: Stampy | ||
steps: | ||
- uses: actions/checkout@3 | ||
- name: download signed Windows installer from from Stampy | ||
env: | ||
STAMPY_ARN: ${{ secrets.STAMPY_ARN }} | ||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | ||
AWS_EC2_METADATA_DISABLED: true | ||
# switch AWS identity to the one that can access stampy | ||
run: | | ||
ACCOUNT_ID=$(aws sts get-caller-identity | jq -r '.Account') | ||
TEMP_ROLE=$(aws sts assume-role --role-arn $STAMPY_ARN --role-session-name artifact-signing) | ||
export AWS_ACCESS_KEY_ID=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.AccessKeyId') | ||
export AWS_SECRET_ACCESS_KEY=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SecretAccessKey') | ||
export AWS_SESSION_TOKEN=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SessionToken') | ||
aws s3 cp --recursive ${{ secrets.STAMPY_SIGNED_BUCKET }}/ . | ||
- name: upload signed Windows installer to Heroku CLI s3 | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | ||
AWS_EC2_METADATA_DISABLED: true | ||
run: node ./scripts/upload-stampy-signed.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Pack and Upload Windows Installers | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
pack-and-upload-windows: | ||
runs-on: ubuntu-latest | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_EC2_METADATA_DISABLED: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Homebrew | ||
id: set-up-homebrew | ||
uses: Homebrew/actions/setup-homebrew@41775cf0c82ef066f1eb39cea1bd74697ca5b735 | ||
- name: Install NSIS | ||
run: brew install nsis | ||
- name: yarn install | ||
run: yarn --immutable --network-timeout 1000000 | ||
- name: pack windows installer | ||
run: yarn oclif pack win --defender-exclusion hidden --root="./packages/cli" | ||
- name: upload windows installer | ||
run: yarn oclif upload win --root="./packages/cli" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,4 +103,4 @@ jobs: | |
cd packages/cli | ||
pwd | ||
yarn oclif upload tarballs | ||
./scripts/upload/deb | ||
./scripts/upload/deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Promote signed Windows installer | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: version to promote to stable (this should be the latest release version) | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
promote: | ||
name: Promote ${{ inputs.version }} of the Windows installer to stable | ||
runs-on: ubuntu-latest | ||
env: | ||
CLOUDFRONT_DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_EC2_METADATA_DISABLED: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: yarn | ||
- run: yarn --immutable --network-timeout 1000000 | ||
- name: install apt-get dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y awscli jq | ||
- name: promote | ||
env: | ||
prerelease-channel: ${{ inputs.channel || 'beta'}} | ||
run: | | ||
SHA=$(npm view heroku@${{ inputs.version }} --json | jq -r '.gitHead[0:7]') | ||
yarn oclif promote --win --root="./packages/cli" --sha="$SHA" --indexes --version=${{ inputs.version }} --channel="stable" | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Upload unsigned Windows installers to Stampy | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: version to upload (this should be the latest release version) | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
get-signed-from-stampy: | ||
runs-on: ubuntu-latest | ||
environment: Stampy | ||
steps: | ||
- uses: actions/checkout@3 | ||
- name: get version sha | ||
id: versionSha | ||
run: echo SHA=$(npm view heroku@${{ inputs.version }} --json | jq -r '.gitHead[0:7]') >> "$GITHUB_ENV" | ||
- name: save filename (without arch/extension) for reuse | ||
id: filename | ||
run: echo "FILEBASE=heroku-v${{inputs.version}}-${{steps.versionSha.outputs.SHA}}" >> "$GITHUB_ENV" | ||
- name: download Windows installers from s3 | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | ||
AWS_EC2_METADATA_DISABLED: true | ||
run: | | ||
aws s3 cp s3://heroku-cli-assets/versions/${{inputs.version}}/${{steps.versionSha.outputs.SHA}}/${{steps.filename.outputs.FILEBASE}}-x86.exe . | ||
aws s3 cp s3://heroku-cli-assets/versions/${{inputs.version}}/${{steps.versionSha.outputs.SHA}}/${{steps.filename.outputs.FILEBASE}}-x64.exe . | ||
- name: upload unsigned Windows installers to Stampy | ||
env: | ||
STAMPY_ARN: ${{ secrets.STAMPY_ARN }} | ||
STAMPY_UNSIGNED_BUCKET: ${{ secrets.STAMPY_UNSIGNED_BUCKET }} | ||
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}} | ||
AWS_SECRET_ACCESS_KEY: ${{secrets.AWS_SECRET_ACCESS_KEY}} | ||
AWS_EC2_METADATA_DISABLED: true | ||
# switch AWS identity to the one that can access stampy | ||
run: | | ||
ACCOUNT_ID=$(aws sts get-caller-identity | jq -r '.Account') | ||
TEMP_ROLE=$(aws sts assume-role --role-arn $STAMPY_ARN --role-session-name artifact-signing) | ||
export AWS_ACCESS_KEY_ID=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.AccessKeyId') | ||
export AWS_SECRET_ACCESS_KEY=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SecretAccessKey') | ||
export AWS_SESSION_TOKEN=$(echo "${TEMP_ROLE}" | jq -r '.Credentials.SessionToken') | ||
aws s3 cp ${{steps.filename.outputs.FILEBASE}}-x86.exe $STAMPY_UNSIGNED_BUCKET/${{steps.filename.outputs.FILEBASE}}-x86.exe | ||
aws s3 cp ${{steps.filename.outputs.FILEBASE}}-x64.exe $STAMPY_UNSIGNED_BUCKET/${{steps.filename.outputs.FILEBASE}}-x64.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.