Skip to content

Commit

Permalink
Merge pull request #1 from qedsoftware/testing-workflows-adjustment
Browse files Browse the repository at this point in the history
Change tested versions. Adjust testing workflows to qed's account
  • Loading branch information
micorix authored Jan 10, 2024
2 parents 3f6b75b + 2f814b5 commit 1a09801
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build-test-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,18 @@ on:
paths:
- ".github/workflows/build-test-image.yml"
- "test/Dockerfile"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
matrix:
keycloak-version:
- '21.0.1'
- '20.0.5'
- '19.0.2'
- '23.0.3'
fail-fast: false
concurrency:
group: docker-build-${{ matrix.keycloak-version }}
Expand All @@ -30,14 +32,15 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: mrparkers/keycloak-dev:${{ matrix.keycloak-version }}
tags: ghcr.io/qedsoftware/keycloak-dev:${{ matrix.keycloak-version }}
file: test/Dockerfile
build-args: |
KEYCLOAK_VERSION=${{ matrix.keycloak-version }}
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
branches:
- master
workflow_dispatch:

jobs:
verify:
Expand Down Expand Up @@ -57,12 +58,12 @@ jobs:
needs:
- verify
runs-on: ubuntu-latest
permissions:
packages: read
strategy:
matrix:
keycloak-version:
- '21.0.1'
- '20.0.5'
- '19.0.2'
- '23.0.3'
fail-fast: false
concurrency:
group: ${{ github.head_ref || github.run_id }}-${{ matrix.keycloak-version }}
Expand All @@ -71,7 +72,7 @@ jobs:
keycloak:
# we have to use a custom docker image for these tests, since it's not possible to provide command-line args
# to a service container. see https://github.com/actions/runner/issues/2139
image: mrparkers/keycloak-dev:${{ matrix.keycloak-version }}
image: ghcr.io/qedsoftware/keycloak-dev:${{ matrix.keycloak-version }}
ports:
- 8080:8080
env:
Expand Down

0 comments on commit 1a09801

Please sign in to comment.