-
Notifications
You must be signed in to change notification settings - Fork 4
49 lines (48 loc) · 1.43 KB
/
buildpush.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
45
46
47
48
49
name: Build and publish latest
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- 20-alpine
folder:
- azure
- google
- openid-connect
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup QEmu so we can build multiplatform
uses: docker/setup-qemu-action@v3
- name: Login to docker hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- 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 }}
- name: Build tag and push image to Docker hub
uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
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 }}