Skip to content

27.4.1-r0

27.4.1-r0 #75

name: Build and push Docker image
on:
release:
types: [published]
workflow_dispatch:
env:
CURRENT_VERSION: 27.4.1
BUILD_NUMBER: 0
LATEST_UBUNTU_VERSION: "24.04"
jobs:
docker:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- ubuntu_version: "20.04"
ubuntu_name: "focal"
- ubuntu_version: "22.04"
ubuntu_name: "jammy"
- ubuntu_version: "24.04"
ubuntu_name: "noble"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: cruizba
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push standalone image
uses: docker/build-push-action@v6
with:
push: true
file: Dockerfile
platforms: linux/amd64,linux/arm64
build-args: |
UBUNTU_VERSION=${{ matrix.ubuntu_version }}
tags: |
cruizba/ubuntu-dind:${{ matrix.ubuntu_name }}-${{ env.CURRENT_VERSION }}
cruizba/ubuntu-dind:${{ matrix.ubuntu_name }}-${{ env.CURRENT_VERSION }}-r${{ env.BUILD_NUMBER }}
cruizba/ubuntu-dind:${{ matrix.ubuntu_name }}-latest
${{ matrix.ubuntu_version == env.LATEST_UBUNTU_VERSION && 'cruizba/ubuntu-dind:latest' || '' }}
- name: Build and push systemd image
uses: docker/build-push-action@v6
with:
push: true
file: Dockerfile.systemd
platforms: linux/amd64,linux/arm64
build-args: |
UBUNTU_VERSION=${{ matrix.ubuntu_version }}
tags: |
cruizba/ubuntu-dind:${{ matrix.ubuntu_name }}-systemd-${{ env.CURRENT_VERSION }}
cruizba/ubuntu-dind:${{ matrix.ubuntu_name }}-systemd-${{ env.CURRENT_VERSION }}-r${{ env.BUILD_NUMBER }}
cruizba/ubuntu-dind:${{ matrix.ubuntu_name }}-systemd-latest
${{ matrix.ubuntu_version == env.LATEST_UBUNTU_VERSION && 'cruizba/ubuntu-dind:systemd-latest' || '' }}