Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
name: 'Docker Test'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- .github/workflows/docker-test.yml
|
|
- Dockerfile
|
|
- scripts/**
|
|
- tests/**
|
|
|
|
jobs:
|
|
test:
|
|
name: Docker Test
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
services:
|
|
registry:
|
|
image: registry:2
|
|
ports:
|
|
- 5000:5000
|
|
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v5
|
|
-
|
|
name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
# network=host driver-opt needed to push to local registry
|
|
# https://docs.docker.com/build/ci/github-actions/named-contexts/#using-with-a-container-builder
|
|
driver-opts: network=host
|
|
-
|
|
name: Build base image
|
|
uses: docker/bake-action@v6
|
|
with:
|
|
source: .
|
|
files: ./docker-bake.hcl
|
|
targets: image-test-base
|
|
push: true
|
|
-
|
|
name: Build test image
|
|
uses: docker/bake-action@v6
|
|
with:
|
|
source: .
|
|
files: ./docker-bake.hcl
|
|
targets: image-test
|
|
load: true
|
|
-
|
|
name: Test
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y p7zip-full
|
|
bash tests/test.sh
|