Skip to content

Commit

Permalink
CLOUDOPS-1486 Remove R2 secrets and step from selfhost (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
watsondm committed Mar 28, 2024
1 parent fb949a6 commit 711c004
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,7 @@ jobs:
keyvault: "bitwarden-ci"
secrets: "aws-selfhost-version-access-id,
aws-selfhost-version-access-key,
aws-selfhost-version-bucket-name,
r2-electron-access-id,
r2-electron-access-key,
r2-bitwarden-selfhost-version-bucket-name,
cf-prod-account"
aws-selfhost-version-bucket-name"

- name: Upload version.json to S3 bucket
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
Expand All @@ -134,19 +130,6 @@ jobs:
--acl "public-read" \
--quiet
- name: Upload version.json to R2 bucket
if: ${{ github.event.inputs.release_type != 'Dry Run' }}
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-bitwarden-selfhost-version-bucket-name }}
CF_ACCOUNT: ${{ steps.retrieve-secrets.outputs.cf-prod-account }}
run: |
aws s3 cp version.json $AWS_S3_BUCKET_NAME \
--quiet \
--endpoint-url https://${CF_ACCOUNT}.r2.cloudflarestorage.com
tag-docker-latest:
name: Tag Docker Hub images with release version and latest
runs-on: ubuntu-22.04
Expand Down

0 comments on commit 711c004

Please sign in to comment.