CLOUDOPS-1592 Remove artifacts R2 steps from desktop release workflows (#8897)
* CLOUDOPS-1592 Remove artifacts R2 steps from desktop release workflows * CLOUDOPS-1592 Remove artifacts R2 steps from staged rollout workflow
This commit is contained in:
parent
1520d95bbc
commit
423d8c71b5
|
@ -955,11 +955,7 @@ jobs:
|
||||||
keyvault: "bitwarden-ci"
|
keyvault: "bitwarden-ci"
|
||||||
secrets: "aws-electron-access-id,
|
secrets: "aws-electron-access-id,
|
||||||
aws-electron-access-key,
|
aws-electron-access-key,
|
||||||
aws-electron-bucket-name,
|
aws-electron-bucket-name"
|
||||||
r2-electron-access-id,
|
|
||||||
r2-electron-access-key,
|
|
||||||
r2-electron-bucket-name,
|
|
||||||
cf-prod-account"
|
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
|
||||||
|
@ -985,20 +981,6 @@ jobs:
|
||||||
--recursive \
|
--recursive \
|
||||||
--quiet
|
--quiet
|
||||||
|
|
||||||
- name: Publish artifacts to R2
|
|
||||||
env:
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ steps.retrieve-secrets.outputs.r2-electron-access-id }}
|
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ steps.retrieve-secrets.outputs.r2-electron-access-key }}
|
|
||||||
AWS_DEFAULT_REGION: 'us-east-1'
|
|
||||||
AWS_S3_BUCKET_NAME: ${{ steps.retrieve-secrets.outputs.r2-electron-bucket-name }}
|
|
||||||
CF_ACCOUNT: ${{ steps.retrieve-secrets.outputs.cf-prod-account }}
|
|
||||||
working-directory: apps/desktop/artifacts
|
|
||||||
run: |
|
|
||||||
aws s3 cp ./ $AWS_S3_BUCKET_NAME/desktop/ \
|
|
||||||
--recursive \
|
|
||||||
--quiet \
|
|
||||||
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
|
|
||||||
|
|
||||||
- name: Update deployment status to Success
|
- name: Update deployment status to Success
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
uses: chrnorm/deployment-status@9a72af4586197112e0491ea843682b5dc280d806 # v2.0.3
|
uses: chrnorm/deployment-status@9a72af4586197112e0491ea843682b5dc280d806 # v2.0.3
|
||||||
|
|
|
@ -115,11 +115,7 @@ jobs:
|
||||||
keyvault: "bitwarden-ci"
|
keyvault: "bitwarden-ci"
|
||||||
secrets: "aws-electron-access-id,
|
secrets: "aws-electron-access-id,
|
||||||
aws-electron-access-key,
|
aws-electron-access-key,
|
||||||
aws-electron-bucket-name,
|
aws-electron-bucket-name"
|
||||||
r2-electron-access-id,
|
|
||||||
r2-electron-access-key,
|
|
||||||
r2-electron-bucket-name,
|
|
||||||
cf-prod-account"
|
|
||||||
|
|
||||||
- name: Download all artifacts
|
- name: Download all artifacts
|
||||||
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
|
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
|
||||||
|
@ -169,21 +165,6 @@ jobs:
|
||||||
--recursive \
|
--recursive \
|
||||||
--quiet
|
--quiet
|
||||||
|
|
||||||
- name: Publish artifacts to R2
|
|
||||||
if: ${{ github.event.inputs.release_type != 'Dry Run' && github.event.inputs.electron_publish == 'true' }}
|
|
||||||
env:
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ steps.retrieve-secrets.outputs.r2-electron-access-id }}
|
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ steps.retrieve-secrets.outputs.r2-electron-access-key }}
|
|
||||||
AWS_DEFAULT_REGION: 'us-east-1'
|
|
||||||
AWS_S3_BUCKET_NAME: ${{ steps.retrieve-secrets.outputs.r2-electron-bucket-name }}
|
|
||||||
CF_ACCOUNT: ${{ steps.retrieve-secrets.outputs.cf-prod-account }}
|
|
||||||
working-directory: apps/desktop/artifacts
|
|
||||||
run: |
|
|
||||||
aws s3 cp ./ $AWS_S3_BUCKET_NAME/desktop/ \
|
|
||||||
--recursive \
|
|
||||||
--quiet \
|
|
||||||
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
|
|
||||||
|
|
||||||
- name: Get checksum files
|
- name: Get checksum files
|
||||||
uses: bitwarden/gh-actions/get-checksum@main
|
uses: bitwarden/gh-actions/get-checksum@main
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -31,29 +31,21 @@ jobs:
|
||||||
keyvault: "bitwarden-ci"
|
keyvault: "bitwarden-ci"
|
||||||
secrets: "aws-electron-access-id,
|
secrets: "aws-electron-access-id,
|
||||||
aws-electron-access-key,
|
aws-electron-access-key,
|
||||||
aws-electron-bucket-name,
|
aws-electron-bucket-name"
|
||||||
r2-electron-access-id,
|
|
||||||
r2-electron-access-key,
|
|
||||||
r2-electron-bucket-name,
|
|
||||||
cf-prod-account"
|
|
||||||
|
|
||||||
- name: Download channel update info files from R2
|
- name: Download channel update info files from S3
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ steps.retrieve-secrets.outputs.r2-electron-access-id }}
|
AWS_ACCESS_KEY_ID: ${{ steps.retrieve-secrets.outputs.aws-electron-access-id }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ steps.retrieve-secrets.outputs.r2-electron-access-key }}
|
AWS_SECRET_ACCESS_KEY: ${{ steps.retrieve-secrets.outputs.aws-electron-access-key }}
|
||||||
AWS_DEFAULT_REGION: 'us-east-1'
|
AWS_DEFAULT_REGION: 'us-west-2'
|
||||||
AWS_S3_BUCKET_NAME: ${{ steps.retrieve-secrets.outputs.r2-electron-bucket-name }}
|
AWS_S3_BUCKET_NAME: ${{ steps.retrieve-secrets.outputs.aws-electron-bucket-name }}
|
||||||
CF_ACCOUNT: ${{ steps.retrieve-secrets.outputs.cf-prod-account }}
|
|
||||||
run: |
|
run: |
|
||||||
aws s3 cp $AWS_S3_BUCKET_NAME/desktop/latest.yml . \
|
aws s3 cp $AWS_S3_BUCKET_NAME/desktop/latest.yml . \
|
||||||
--quiet \
|
--quiet \
|
||||||
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
|
|
||||||
aws s3 cp $AWS_S3_BUCKET_NAME/desktop/latest-linux.yml . \
|
aws s3 cp $AWS_S3_BUCKET_NAME/desktop/latest-linux.yml . \
|
||||||
--quiet \
|
--quiet \
|
||||||
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
|
|
||||||
aws s3 cp $AWS_S3_BUCKET_NAME/desktop/latest-mac.yml . \
|
aws s3 cp $AWS_S3_BUCKET_NAME/desktop/latest-mac.yml . \
|
||||||
--quiet \
|
--quiet \
|
||||||
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
|
|
||||||
|
|
||||||
- name: Check new rollout percentage
|
- name: Check new rollout percentage
|
||||||
env:
|
env:
|
||||||
|
@ -95,20 +87,3 @@ jobs:
|
||||||
|
|
||||||
aws s3 cp latest-mac.yml $AWS_S3_BUCKET_NAME/desktop/ \
|
aws s3 cp latest-mac.yml $AWS_S3_BUCKET_NAME/desktop/ \
|
||||||
--acl "public-read"
|
--acl "public-read"
|
||||||
|
|
||||||
- name: Publish channel update info files to R2
|
|
||||||
env:
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ steps.retrieve-secrets.outputs.r2-electron-access-id }}
|
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ steps.retrieve-secrets.outputs.r2-electron-access-key }}
|
|
||||||
AWS_DEFAULT_REGION: 'us-east-1'
|
|
||||||
AWS_S3_BUCKET_NAME: ${{ steps.retrieve-secrets.outputs.r2-electron-bucket-name }}
|
|
||||||
CF_ACCOUNT: ${{ steps.retrieve-secrets.outputs.cf-prod-account }}
|
|
||||||
run: |
|
|
||||||
aws s3 cp latest.yml $AWS_S3_BUCKET_NAME/desktop/ \
|
|
||||||
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
|
|
||||||
|
|
||||||
aws s3 cp latest-linux.yml $AWS_S3_BUCKET_NAME/desktop/ \
|
|
||||||
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
|
|
||||||
|
|
||||||
aws s3 cp latest-mac.yml $AWS_S3_BUCKET_NAME/desktop/ \
|
|
||||||
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
|
|
||||||
|
|
Loading…
Reference in New Issue