2022-09-09 09:12:17 +00:00
|
|
|
name: 'Build, Test & Deploy'
|
2021-01-16 09:16:05 +00:00
|
|
|
|
|
|
|
on:
|
2021-02-18 21:56:13 +00:00
|
|
|
workflow_dispatch:
|
2021-01-16 09:16:05 +00:00
|
|
|
push:
|
2021-01-24 22:18:37 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2021-09-28 10:37:54 +00:00
|
|
|
paths:
|
2022-09-09 09:12:17 +00:00
|
|
|
- target/**
|
|
|
|
- .dockerignore
|
|
|
|
- .gitmodules
|
|
|
|
- Dockerfile
|
|
|
|
- setup.sh
|
2021-01-24 22:18:37 +00:00
|
|
|
tags:
|
|
|
|
- '*.*.*'
|
2021-01-16 09:16:05 +00:00
|
|
|
|
2022-05-11 07:51:15 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
|
|
|
|
2021-01-16 09:16:05 +00:00
|
|
|
jobs:
|
2022-09-09 09:12:17 +00:00
|
|
|
build-image:
|
|
|
|
name: 'Build AMD64 Image'
|
|
|
|
uses: docker-mailserver/docker-mailserver/.github/workflows/generic_build.yml@master
|
|
|
|
|
|
|
|
run-tests:
|
|
|
|
name: 'Test AMD64 Image'
|
|
|
|
needs: build-image
|
|
|
|
uses: docker-mailserver/docker-mailserver/.github/workflows/generic_test.yml@master
|
|
|
|
with:
|
|
|
|
cache-key: ${{ needs.build-image.outputs.build-cache-key }}
|
|
|
|
|
|
|
|
publish-images:
|
|
|
|
name: 'Publish AMD64 and ARM64 Image'
|
|
|
|
needs: [build-image, run-tests]
|
|
|
|
uses: docker-mailserver/docker-mailserver/.github/workflows/generic_publish.yml@master
|
|
|
|
with:
|
|
|
|
cache-key: ${{ needs.build-image.outputs.build-cache-key }}
|
|
|
|
secrets: inherit
|