Skip to content

Extend and adjust build for self-hosted runner. #3

Extend and adjust build for self-hosted runner.

Extend and adjust build for self-hosted runner. #3

name: Build Test Image
on:
push:
branches:
- master
paths:
- ".github/workflows/build-test-image.yml"
- "test/Dockerfile"
jobs:
build:
# runs-on: ubuntu-latest
runs-on: self-hosted
strategy:
matrix:
keycloak-version:
- '25.0.2'
- '24.0.5'
- '23.0.7'
- '22.0.5'
- '21.1.2'
fail-fast: false
concurrency:
group: docker-build-${{ matrix.keycloak-version }}
cancel-in-progress: true
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: markusqvestseidl/keycloak-dev:${{ matrix.keycloak-version }}
file: test/Dockerfile
build-args: |
KEYCLOAK_VERSION=${{ matrix.keycloak-version }}