mirror of
https://github.com/bitwarden/server.git
synced 2025-06-09 04:30:36 -05:00
BRE-875/server-builds-intermittently-failing-after-introducing-build-cache (#5909)
* increase logging * remove caching for troubleshooting * test max parallel of 3 * up parallel * test removing cache again * add permissions read * edit permissions
This commit is contained in:
parent
59f5fafb87
commit
6411cc63ca
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -12,6 +12,9 @@ on:
|
||||
workflow_call:
|
||||
inputs: {}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
env:
|
||||
_AZ_REGISTRY: "bitwardenprod.azurecr.io"
|
||||
_GITHUB_PR_REPO_NAME: ${{ github.event.pull_request.head.repo.full_name }}
|
||||
@ -237,18 +240,10 @@ jobs:
|
||||
fi
|
||||
echo "tags=$TAGS" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Generate image full name
|
||||
id: cache-name
|
||||
env:
|
||||
PROJECT_NAME: ${{ steps.setup.outputs.project_name }}
|
||||
run: echo "name=${_AZ_REGISTRY}/${PROJECT_NAME}:buildcache" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build Docker image
|
||||
id: build-artifacts
|
||||
uses: docker/build-push-action@67a2d409c0a876cbe6b11854e3e25193efe4e62d # v6.12.0
|
||||
with:
|
||||
cache-from: type=registry,ref=${{ steps.cache-name.outputs.name }}
|
||||
cache-to: type=registry,ref=${{ steps.cache-name.outputs.name}},mode=max
|
||||
context: .
|
||||
file: ${{ matrix.base_path }}/${{ matrix.project_name }}/Dockerfile
|
||||
platforms: |
|
||||
@ -605,6 +600,7 @@ jobs:
|
||||
project: server
|
||||
pull_request_number: ${{ github.event.number }}
|
||||
secrets: inherit
|
||||
permissions: read-all
|
||||
|
||||
check-failures:
|
||||
name: Check for failures
|
||||
|
Loading…
x
Reference in New Issue
Block a user