mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
68a43eb497
Previously, we did not run the workflow on push on `master` when a release happened because the push on master is guarded by a check on which files were changed. With this change, I added `VERSION` to the list of files to consider when updating `:edge`.
41 lines
989 B
YAML
41 lines
989 B
YAML
name: 'Build, Test & Deploy'
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- target/**
|
|
- .dockerignore
|
|
- .gitmodules
|
|
- Dockerfile
|
|
- setup.sh
|
|
- VERSION # also update :edge when a release happens
|
|
tags:
|
|
- '*.*.*'
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
jobs:
|
|
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
|