Skip to content

Add 25

Add 25 #41

Workflow file for this run

name: Docker
on:
push:
branches:
- master
tags:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
fail-fast: false
matrix:
version:
- "25.0.3"
include:
- version: "25.0.3"
version_major: "25"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure
id: config
run: |-
NPROC=$(nproc)
echo "NPROC=$((NPROC*2+1))" >> $GITHUB_ENV
echo "NPROC=$((NPROC*2+1))" >> $GITHUB_OUTPUT
echo "repo-owner=${{ github.repository_owner }}" >> $GITHUB_OUTPUT
echo "repo-name=${GITHUB_REPOSITORY#*/docker-}" >> $GITHUB_OUTPUT
- name: Setup - Setup buildx
uses: docker/setup-buildx-action@v3
- name: Setup - Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Setup - Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: Setup - Docker image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |-
${{ steps.config.outputs.repo-owner }}/${{ steps.config.outputs.repo-name }}
ghcr.io/${{ steps.config.outputs.repo-owner }}/${{ steps.config.outputs.repo-name }}
flavor: |-
latest=false
tags: |-
type=semver,pattern={{major}}.{{minor}},value=${{ matrix.version }}
type=semver,pattern={{major}}.{{minor}}.{{patch}},value=${{ matrix.version }}
- name: Build
uses: docker/build-push-action@v5
id: build
with:
context: ${{ matrix.version_major }}
build-args: |
version=${{ matrix.version }}
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max