mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
|
name: "Build Stable on Schedule"
|
||
|
|
||
|
on:
|
||
|
schedule:
|
||
|
- cron: "0 0 * * 5"
|
||
|
|
||
|
jobs:
|
||
|
publish:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
ref: stable
|
||
|
submodules: recursive
|
||
|
- name: Prepare
|
||
|
id: prep
|
||
|
run: |
|
||
|
TAGS="docker.io/mailserver/docker-mailserver:stable"
|
||
|
echo ::set-output name=tags::${TAGS}
|
||
|
- name: Set up QEMU
|
||
|
uses: docker/setup-qemu-action@v1
|
||
|
- name: Set up Docker Buildx
|
||
|
uses: docker/setup-buildx-action@v1
|
||
|
id: buildx
|
||
|
- name: Login to DockerHub
|
||
|
uses: docker/login-action@v1
|
||
|
with:
|
||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||
|
- name: Build image locally
|
||
|
uses: docker/build-push-action@v2
|
||
|
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
|
||
|
pull: true
|
||
|
push: true
|
||
|
tags: ${{ steps.prep.outputs.tags }}
|