forked from ajmwagar/merino
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (26 loc) · 842 Bytes
/
pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: PR
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
should_build:
runs-on: ubuntu-latest
steps:
- name: Set up Docker buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Build image
uses: docker/build-push-action@v6
with:
cache-from: type=gha
# linux/amd64 supports all x86 CPUs
# linux/amd64/v2 supports x86 CPUs from 2010+
# linux/amd64/v3 supports x86 CPUs from 2015+
# https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels
platforms: linux/amd64,linux/amd64/v2,linux/amd64/v3,linux/arm64
pull: true