Skip to content

Commit 37cef8d

Browse files
committed
added CI job for PR's
1 parent 502769a commit 37cef8d

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
8+
jobs:
9+
build:
10+
name: build (${{ matrix.platform }})
11+
runs-on: ${{ matrix.runner }}
12+
permissions:
13+
contents: read
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
include:
18+
- platform: linux/amd64
19+
runner: ubuntu-latest
20+
- platform: linux/arm64
21+
runner: ubuntu-24.04-arm
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v7.0.1
26+
27+
- name: Set up Docker Buildx
28+
uses: docker/setup-buildx-action@v4.2.0
29+
30+
# dhi.io is gated: the builder pulls dhi.io/alpine-base:*-dev and
31+
# the runtime stage pulls dhi.io/alpine-base:3.23.
32+
- name: Login to Docker Hub (for dhi.io)
33+
uses: docker/login-action@v4.5.1
34+
with:
35+
registry: dhi.io
36+
username: ${{ secrets.DOCKERHUB_USERNAME }}
37+
password: ${{ secrets.DOCKERHUB_TOKEN }}
38+
39+
- name: Build image (no push)
40+
uses: docker/build-push-action@v7.3.2
41+
with:
42+
context: .
43+
file: .docker/Dockerfile
44+
platforms: ${{ matrix.platform }}
45+
cache-from: type=gha,scope=${{ matrix.platform }}
46+
cache-to: type=gha,scope=${{ matrix.platform }},mode=max
47+
push: false

0 commit comments

Comments
 (0)