-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into mble-sfdc-space-drain-set
- Loading branch information
Showing
161 changed files
with
5,576 additions
and
956 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Run CLI Direwolf Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseChannel: | ||
type: choice | ||
description: Channel to run the Direwolf tests against | ||
required: true | ||
options: | ||
- stable | ||
- beta | ||
- alpha | ||
|
||
workflow_call: | ||
inputs: | ||
releaseChannel: | ||
type: string | ||
description: Channel to run the Direwolf tests against | ||
required: true | ||
default: stable | ||
|
||
jobs: | ||
run-direwolf-tests: | ||
name: Run Direwolf CLI tests | ||
runs-on: pub-hk-ubuntu-22.04-small | ||
timeout-minutes: 20 | ||
environment: direwolf | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install jq | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y awscli jq | ||
- name: run direwolf suite | ||
run: ./scripts/direwolf-test-run | ||
env: | ||
HEROKU_CLI_VERSION: ${{ inputs.releaseChannel }} | ||
DIREWOLF_TOKEN: ${{ secrets.DEV_TOOLING_DIREWOLF_TOKEN }} | ||
DIREWOLF_CLOUD_UUID: ${{ secrets.DIREWOLF_CLOUD_UUID_PRODUCTION }} |
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/stampy/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@v3 | ||
- 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 s3://${{ 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/stampy/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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
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 | ||
isStableRelease: | ||
type: boolean | ||
description: Is this a stable/prod release? | ||
required: true | ||
default: false | ||
channel: | ||
type: choice | ||
description: Release channel for prereleases | ||
required: false | ||
options: | ||
- beta | ||
- alpha | ||
|
||
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=${{ fromJSON(inputs.isStableRelease) && 'stable' || env.prerelease-channel }} | ||
shell: bash |
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.