Skip to content

docker-daily-release #528

docker-daily-release

docker-daily-release #528

Workflow file for this run

name: docker-daily-release
on:
schedule:
- cron: "2 12 * * *"
push:
branches:
- "master"
workflow_dispatch:
jobs:
deploy-daily:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
# https://github.com/docker/setup-qemu-action#usage
- name: Set up QEMU
uses: docker/[email protected]
# https://github.com/marketplace/actions/docker-setup-buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
# https://github.com/docker/login-action#docker-hub
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# https://github.com/docker/build-push-action#multi-platform-image
- name: Build and push to Docker Hub
uses: docker/[email protected]
with:
context: .
file: Dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest