-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 1.05 KB
/
main.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
name: Main
on:
push:
branches: [main]
permissions:
actions: write
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
arch: ['linux/amd64', 'linux/arm64']
include:
- file: 'fpm/Dockerfile'
image-name-suffix: ''
- file: 'apache/Dockerfile'
image-name-suffix: '/apache'
name: Build image
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: ./.github/actions/build-images
with:
arch: ${{ matrix.arch }}
cache-key: ${{ matrix.os }}-buildx-${{ matrix.arch }}-${{ github.ref_name }}-${{ github.sha }}
cache-restore-keys: |
${{ matrix.os }}-buildx-${{ matrix.arch }}-${{ github.ref_name }}-
${{ matrix.os }}-buildx-${{ matrix.arch }}-
dockerfile: ${{ matrix.file }}
image-name-suffix: ${{ matrix.image-name-suffix }}
github-token: ${{ secrets.GITHUB_TOKEN }}