2022-11-22 19:37:15 +02:00
|
|
|
name: Build mailcow backup image
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
# At 00:00 on Sunday
|
|
|
|
- cron: "0 0 * * 0"
|
|
|
|
workflow_dispatch: # Allow to run workflow manually
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker_image_build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-04 18:49:38 +02:00
|
|
|
uses: actions/checkout@v4
|
2022-11-22 19:37:15 +02:00
|
|
|
|
|
|
|
- name: Set up QEMU
|
2023-09-12 17:41:09 +02:00
|
|
|
uses: docker/setup-qemu-action@v3
|
2022-11-22 19:37:15 +02:00
|
|
|
|
|
|
|
- name: Set up Docker Buildx
|
2023-09-12 17:41:16 +02:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2022-11-22 19:37:15 +02:00
|
|
|
|
|
|
|
- name: Login to Docker Hub
|
2023-09-12 17:41:00 +02:00
|
|
|
uses: docker/login-action@v3
|
2022-11-22 19:37:15 +02:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.BACKUPIMAGEBUILD_ACTION_DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.BACKUPIMAGEBUILD_ACTION_DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
- name: Build and push
|
2024-06-17 17:38:21 +02:00
|
|
|
uses: docker/build-push-action@v6
|
2022-11-22 19:37:15 +02:00
|
|
|
with:
|
|
|
|
context: .
|
2023-07-24 17:39:41 +02:00
|
|
|
platforms: linux/amd64,linux/arm64
|
2022-11-22 19:37:15 +02:00
|
|
|
file: data/Dockerfiles/backup/Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: mailcow/backup:latest
|