-
-
Notifications
You must be signed in to change notification settings - Fork 66
37 lines (35 loc) · 995 Bytes
/
test_docker.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
#### Publish tags to docker hub
name: 👀 Test docker
on:
pull_request:
branches:
- main
- dev
- dotnet8
jobs:
test:
name: 👀 Test image build ${{ matrix.dockerfile }}
runs-on: ubuntu-latest
strategy:
matrix:
dockerfile:
- Dockerfile
- Dockerfile.AddOn
steps:
- name: 📤 Checkout the repository
uses: actions/checkout@main
- name: 📎 Set up QEMU
uses: docker/setup-qemu-action@v3
- name: 🔧 Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: 🧰 Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: 🛠️ Run Buildx
run: |
docker buildx build \
--platform linux/arm,linux/arm64,linux/amd64 \
--output "type=image,push=false" \
--no-cache \
--file ./${{ matrix.dockerfile }} . \
--tag netdaemon/netdaemon4:dev