π Publish Docker images #830
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "π Publish Docker images" | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 7 * * *" | |
env: | |
DOCKERHUB_USER: wakemeops | |
jobs: | |
docker-publish: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- image: ubuntu | |
registry_name: ubuntu | |
tag: latest | |
- image: ubuntu | |
registry_name: ubuntu | |
tag: rolling | |
- image: ubuntu | |
registry_name: ubuntu | |
tag: 22.04 | |
- image: ubuntu | |
registry_name: ubuntu | |
tag: 20.04 | |
- image: ubuntu | |
registry_name: ubuntu | |
tag: 18.04 | |
- image: debian | |
registry_name: debian | |
tag: latest | |
- image: debian | |
registry_name: debian | |
tag: bookworm | |
- image: debian | |
registry_name: debian | |
tag: bookworm-slim | |
- image: debian | |
registry_name: debian | |
tag: bullseye | |
- image: debian | |
registry_name: debian | |
tag: bullseye-slim | |
- image: debian | |
registry_name: debian | |
tag: buster | |
- image: debian | |
registry_name: debian | |
tag: buster-slim | |
- image: bitnami/minideb | |
registry_name: minideb | |
tag: latest | |
- image: bitnami/minideb | |
registry_name: minideb | |
tag: bookworm | |
- image: bitnami/minideb | |
registry_name: minideb | |
tag: bullseye | |
- image: bitnami/minideb | |
registry_name: minideb | |
tag: buster | |
steps: | |
- name: Set up Docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Set up QEMU (for multi platform build) | |
uses: docker/setup-qemu-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ env.DOCKERHUB_USER }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Build Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: docker.io/${{ env.DOCKERHUB_USER }}/${{ matrix.registry_name }}:${{ matrix.tag }} | |
labels: | | |
org.wakemeops.maintainers="WakeMeOps <wakemeops.com>" | |
org.wakemeops.base_image="docker.io/${{ matrix.image }}:${{ matrix.tag }}" | |
org.wakemeops.commit="${{ github.sha }}" | |
build-args: | | |
IMAGE=${{ matrix.image }} | |
TAG=${{ matrix.tag }} | |
platforms: linux/amd64,linux/arm64 |