-
-
Notifications
You must be signed in to change notification settings - Fork 131
34 lines (29 loc) · 763 Bytes
/
build-images.yml
File metadata and controls
34 lines (29 loc) · 763 Bytes
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
name: Build images
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
strategy:
matrix:
tag: ["latest", "snapshot"]
distribution: ["alpine", "debian"]
name: ${{ matrix.tag }}-${{ matrix.distribution }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Lint Dockerfile
uses: hadolint/hadolint-action@v3.3.0
with:
dockerfile: ${{ matrix.distribution }}/Dockerfile
config: ".github/hadolint.yml"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build images
run: ./build ${{ matrix.tag }} ${{ matrix.distribution }}