You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-31 09:24:31 +03:00
ci: Only build docker image for amd64 in PRs
This commit is contained in:
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
@ -451,11 +451,13 @@ jobs:
|
|||||||
|
|
||||||
# For pull-requests, only read from the cache, do not try to push to the
|
# For pull-requests, only read from the cache, do not try to push to the
|
||||||
# cache or the image itself
|
# cache or the image itself
|
||||||
|
# We only build for the amd64 platform in pul-requests to speed-up CI
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: docker/bake-action@v2
|
uses: docker/bake-action@v2
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
with:
|
with:
|
||||||
set: |
|
set: |
|
||||||
|
base.platform=linux/amd64
|
||||||
base.cache-from=type=registry,ref=${{ env.IMAGE }}:buildcache
|
base.cache-from=type=registry,ref=${{ env.IMAGE }}:buildcache
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
|
Reference in New Issue
Block a user