mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
7b21db77cc
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2.8.0 to 2.9.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v2.8.0...v2.9.0) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
71 lines
1.8 KiB
YAML
71 lines
1.8 KiB
YAML
name: "Test Merge Requests"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- 'target/**'
|
|
- 'test/**'
|
|
- '.dockerignore'
|
|
- '.gitmodules'
|
|
- 'Dockerfile'
|
|
- 'setup.sh'
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2.3.4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1.2.0
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1.6.0
|
|
id: buildx
|
|
|
|
- name: Cache Docker layers
|
|
uses: actions/cache@v2.1.7
|
|
with:
|
|
path: /tmp/.buildx-cache
|
|
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
restore-keys: |
|
|
${{ runner.os }}-buildx-
|
|
|
|
- name: Build images locally
|
|
uses: docker/build-push-action@v2.9.0
|
|
with:
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
context: .
|
|
file: ./Dockerfile
|
|
build-args: |
|
|
VCS_REF=${{ github.sha }}
|
|
VCS_VER=${{ github.ref }}
|
|
platforms: linux/amd64,linux/arm/v7,linux/arm64
|
|
tags: mailserver-testing:ci
|
|
cache-to: type=local,dest=/tmp/.buildx-cache
|
|
|
|
- name: Build image for test suit
|
|
uses: docker/build-push-action@v2.9.0
|
|
with:
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
context: .
|
|
file: ./Dockerfile
|
|
build-args: |
|
|
VCS_REF=${{ github.sha }}
|
|
VCS_VER=${{ github.ref }}
|
|
platforms: linux/amd64
|
|
load: true
|
|
tags: mailserver-testing:ci
|
|
cache-from: type=local,src=/tmp/.buildx-cache
|
|
|
|
- name: Run test suite
|
|
run: >
|
|
NAME=mailserver-testing:ci
|
|
bash -c 'make generate-accounts tests'
|
|
env:
|
|
CI: true
|