2023-01-12 21:13:42 +00:00
|
|
|
name: "Test Merge Requests"
|
2021-01-16 09:16:05 +00:00
|
|
|
|
2021-09-28 10:37:54 +00:00
|
|
|
on:
|
2021-05-16 18:46:55 +00:00
|
|
|
workflow_dispatch:
|
2021-02-11 08:48:45 +00:00
|
|
|
pull_request:
|
2021-09-28 10:37:54 +00:00
|
|
|
paths:
|
2022-09-09 09:12:17 +00:00
|
|
|
- target/**
|
|
|
|
- test/**
|
|
|
|
- .dockerignore
|
|
|
|
- .gitmodules
|
|
|
|
- Dockerfile
|
2023-01-12 21:13:42 +00:00
|
|
|
- Makefile
|
2022-09-09 09:12:17 +00:00
|
|
|
- setup.sh
|
2021-01-16 09:16:05 +00:00
|
|
|
|
2022-05-11 07:51:15 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-01-16 09:16:05 +00:00
|
|
|
jobs:
|
2022-09-09 09:12:17 +00:00
|
|
|
build-image-amd64:
|
2023-01-12 21:13:42 +00:00
|
|
|
name: "Build AMD64 Image"
|
2022-09-09 09:12:17 +00:00
|
|
|
uses: docker-mailserver/docker-mailserver/.github/workflows/generic_build.yml@master
|
|
|
|
|
|
|
|
run-tests:
|
2023-01-12 21:13:42 +00:00
|
|
|
name: "Test AMD64 Image"
|
2022-09-09 09:12:17 +00:00
|
|
|
needs: build-image-amd64
|
|
|
|
uses: docker-mailserver/docker-mailserver/.github/workflows/generic_test.yml@master
|
|
|
|
with:
|
|
|
|
cache-key: ${{ needs.build-image-amd64.outputs.build-cache-key }}
|
|
|
|
|
|
|
|
job-build-arm:
|
2023-01-12 21:13:42 +00:00
|
|
|
name: "Build ARM64 Image"
|
2022-09-09 09:12:17 +00:00
|
|
|
# Dependency ensures the cache-key is only created for AMD64 builds.
|
|
|
|
# ARM64 will not be able to use this cache, building from scratch each time.
|
2022-12-23 01:56:36 +00:00
|
|
|
# Expect about 2 minutes extra build time until adopting `type=gha` with scopes for cache.
|
2022-09-09 09:12:17 +00:00
|
|
|
needs: build-image-amd64
|
|
|
|
uses: docker-mailserver/docker-mailserver/.github/workflows/generic_build.yml@master
|
|
|
|
with:
|
2022-12-23 01:56:36 +00:00
|
|
|
platforms: linux/arm64
|