mirror of
https://github.com/bitwarden/server.git
synced 2025-07-16 15:17:33 -05:00
[DEVOPS-1161] fix the rate limiting issue in building bitwarden unified (#2694)
* Add GH_PAT secret to build * Fix secret * Fix * Fix * Maybe fix * add cat for tags.json * Maybe fix * Matbe fix * Trying to fix * Change gh_pat path * Fix * Remove obsolete tags obtaining
This commit is contained in:
13
.github/workflows/build-self-host.yml
vendored
13
.github/workflows/build-self-host.yml
vendored
@ -48,11 +48,17 @@ jobs:
|
||||
run: az acr login -n bitwardenqa
|
||||
|
||||
- name: Login to Azure - Prod Subscription
|
||||
if: ${{ env.is_publish_branch == 'true' }}
|
||||
uses: Azure/login@1f63701bf3e6892515f1b7ce2d2bf1708b46beaf
|
||||
with:
|
||||
creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }}
|
||||
|
||||
- name: Retrieve github PAT secrets
|
||||
id: retrieve-secret-pat
|
||||
uses: bitwarden/gh-actions/get-keyvault-secrets@c3b3285993151c5af47cefcb3b9134c28ab479af
|
||||
with:
|
||||
keyvault: "bitwarden-prod-kv"
|
||||
secrets: "github-pat-bitwarden-devops-bot-repo-scope"
|
||||
|
||||
- name: Retrieve secrets
|
||||
if: ${{ env.is_publish_branch == 'true' }}
|
||||
id: retrieve-secrets
|
||||
@ -62,7 +68,8 @@ jobs:
|
||||
secrets: "docker-password,
|
||||
docker-username,
|
||||
dct-delegate-2-repo-passphrase,
|
||||
dct-delegate-2-key"
|
||||
dct-delegate-2-key
|
||||
github-pat-bitwarden-devops-bot-repo-scope"
|
||||
|
||||
- name: Log into Docker
|
||||
if: ${{ env.is_publish_branch == 'true' }}
|
||||
@ -118,6 +125,8 @@ jobs:
|
||||
linux/arm64/v8
|
||||
push: true
|
||||
tags: ${{ steps.tag-list.outputs.tags }}
|
||||
secrets: |
|
||||
"GH_PAT=${{ steps.retrieve-secret-pat.outputs.github-pat-bitwarden-devops-bot-repo-scope }}"
|
||||
|
||||
- name: Log out of Docker and disable Docker Notary
|
||||
if: ${{ env.is_publish_branch == 'true' }}
|
||||
|
Reference in New Issue
Block a user