Skip to content

Docker

Docker #13

Workflow file for this run

name: "Docker"
on:
workflow_dispatch:
push:
branches: ["master"]
schedule:
- cron: "0 8 * * 1"
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- image: latest
version: 24-cli
- image: 20-cli
version: 20-cli
- image: 23-cli
version: 23-cli
- image: 24-cli
version: 24-cli
- image: 27-cli
version: 27-cli
fail-fast: false
name: Docker (dockette/docker:${{ matrix.image }})
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}-${{ matrix.image }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: dockette/docker:${{ matrix.image }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
platforms: linux/amd64,linux/arm64
build-args: |
VERSION=${{ matrix.version }}