-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (43 loc) · 1.39 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build and verify PR
on:
pull_request
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- 18-alpine
- 20-alpine
folder:
- azure
- openid-connect
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
- name: Setup QEmu so we can build multiplatform
uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Docker meta configuration
uses: docker/metadata-action@v5
id: meta
with:
images: |
unleashorg/unleash-community-${{ matrix.folder }}
tags:
type=edge,suffix=-${{ matrix.version }}
type=semver,pattern={{ version }},event=tag,suffix=-${{ matrix.version }}
type=semver,pattern={{ major.minor }},event=tag,suffix=-${{ matrix.version }}
- name: Build tag and push image to Docker hub
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: false
context: platforms/${{ matrix.folder }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NODE_VERSION=${{ matrix.version }}