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
50
51
52
53
name: Docker
on:
push:
branches:
tags:
paths:
- Dockerfile
- .dockerignore
- Cargo.toml
- Cargo.lock
- "src/**"
- scripts/docker-smoke.sh
- .github/workflows/docker.yml
pull_request:
paths:
- Dockerfile
- .dockerignore
- Cargo.toml
- Cargo.lock
- "src/**"
- scripts/docker-smoke.sh
- .github/workflows/docker.yml
workflow_dispatch:
permissions:
contents: read
jobs:
image:
name: image (${{ matrix.arch }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
arch: amd64
- os: ubuntu-24.04-arm
arch: arm64
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build
uses: docker/build-push-action@v6
with:
context: .
load: true
tags: emperor-folder:smoke
cache-from: type=gha,scope=${{ matrix.arch }}
cache-to: type=gha,mode=max,scope=${{ matrix.arch }}
- name: Smoke test over stdio
run: bash scripts/docker-smoke.sh emperor-folder:smoke