Skip to content

Commit

Permalink
Updated versions inside CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasvoelcker committed Mar 14, 2024
1 parent 87b8d47 commit d711907
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ jobs:
- KEYCLOAK_VERSION: 23.0.7
- KEYCLOAK_VERSION: 24.0.1
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4.2.1
with:
distribution: 'temurin'
java-version: 21

- uses: actions/cache@v3
- uses: actions/cache@v4.0.1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ matrix.env.KEYCLOAK_VERSION }}-${{ hashFiles('**/pom.xml') }}
Expand All @@ -69,7 +69,7 @@ jobs:
run: ./mvnw ${MAVEN_CLI_OPTS} -Dkeycloak.version=${{ matrix.env.KEYCLOAK_VERSION }} ${ADJUSTED_RESTEASY_VERSION} clean verify -Pcoverage ${COMPATIBILITY_PROFILE}

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4.1.0
with:
file: "${{ github.workspace }}/target/site/jacoco/jacoco.xml"
fail_ci_if_error: ${{ !startsWith(github.event.ref, 'refs/tags/v') }}
Expand All @@ -79,26 +79,26 @@ jobs:
run: echo "::set-output name=VERSION::$(tail -n1 .env | cut -d= -f2)"

- name: Login to Docker Hub
uses: docker/login-action@v3.0.0
uses: docker/login-action@v3.1.0
if: startsWith(github.event.ref, 'refs/tags/v')
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Login to Quay.io
uses: docker/login-action@v3.0.0
uses: docker/login-action@v3.1.0
if: startsWith(github.event.ref, 'refs/tags/v')
with:
registry: quay.io
username: ${{ secrets.QUAYIO_USERNAME }}
password: ${{ secrets.QUAYIO_PASSWORD }}

- name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v3
uses: crazy-max/ghaction-github-runtime@v3.0.0

- name: Set up Docker Build Metadata
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v4.6.0
uses: docker/metadata-action@v5.5.1
with:
images: adorsys/keycloak-config-cli,quay.io/adorsys/keycloak-config-cli
flavor: |
Expand All @@ -113,13 +113,13 @@ jobs:
maintainer=adorsys GmbH & Co. KG
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3.0.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3.2.0

- name: Build and push
uses: docker/build-push-action@v4.1.1
uses: docker/build-push-action@v5.3.0
with:
build-args: |-
KEYCLOAK_VERSION=${{ matrix.env.KEYCLOAK_VERSION }}
Expand All @@ -138,7 +138,7 @@ jobs:
cp target/keycloak-config-cli.jar keycloak-config-cli-${{ matrix.env.KEYCLOAK_VERSION }}.jar
sha256sum keycloak-config-cli-${{ matrix.env.KEYCLOAK_VERSION }}.jar > keycloak-config-cli-${{ matrix.env.KEYCLOAK_VERSION }}.jar.sha256
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4.3.1
with:
name: keycloak-config-cli-${{ matrix.env.KEYCLOAK_VERSION }}
if-no-files-found: error
Expand All @@ -154,15 +154,15 @@ jobs:
matrix:
java: [21]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1

- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4.2.1
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}

- uses: actions/cache@v3
- uses: actions/cache@v4.0.1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-${{ matrix.java }}-maven-build-pom-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -191,15 +191,15 @@ jobs:
env:
- KEYCLOAK_VERSION: 19.0.3
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1

- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4.2.1
with:
distribution: 'temurin'
java-version: '21'

- uses: actions/cache@v3
- uses: actions/cache@v4.0.1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-keycloak-legacy-${{ hashFiles('**/pom.xml') }}
Expand All @@ -221,10 +221,10 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4.1.1

- name: Lint .github/workflows/*.yaml files
uses: ibiqlik/action-yamllint@v3.1
uses: ibiqlik/action-yamllint@v3.1.1
with:
strict: true
file_or_dir: .github/workflows/
Expand All @@ -239,15 +239,15 @@ jobs:
run: git fetch --prune --unshallow

- name: Set up Helm
uses: azure/setup-helm@v3.5
uses: azure/setup-helm@v4.1.0
with:
version: v3.4.0

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5.0.0
with:
python-version: 3.7

- uses: actions/cache@v3
- uses: actions/cache@v4.0.1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-chart-testing-action
Expand All @@ -266,12 +266,12 @@ jobs:
needs: [build]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4.1.4
with:
path: assets

- name: Create Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2.0.2
with:
name: Release ${{ github.ref_name }}
draft: false
Expand Down

0 comments on commit d711907

Please sign in to comment.