-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (37 loc) · 1018 Bytes
/
test-docker.yml
File metadata and controls
43 lines (37 loc) · 1018 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
35
36
37
38
39
40
41
42
43
name: Test Docker
on:
pull_request:
workflow_dispatch:
jobs:
test-docker:
name: Test Docker Image (${{ matrix.platform }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ matrix.platform }}
load: true
tags: orbit-actions:test
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Docker smoke tests
run: ./test/docker/test-docker.bash
env:
DOCKER_DEFAULT_PLATFORM: ${{ matrix.platform }}
DOCKER_IMAGE: orbit-actions:test