Skip to content

Bump docker/build-push-action from 4 to 5 #346

Bump docker/build-push-action from 4 to 5

Bump docker/build-push-action from 4 to 5 #346

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request: {}
jobs:
yaml:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ibiqlik/action-yamllint@v3
with:
format: colored
strict: true
markdown:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: avto-dev/markdown-lint@v1
with:
args: /github/workspace
json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: limitusus/[email protected]
with:
pattern: \\.json$
dockerfile:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
context: [base, temurin, temurin-import, distroless, distroless-import]
steps:
- uses: actions/checkout@v3
- uses: hadolint/[email protected]
with:
dockerfile: src/main/docker/${{ matrix.context }}/Dockerfile
verify:
runs-on: ubuntu-latest
if: ${{ github.ref != 'refs/heads/main' }}
strategy:
fail-fast: false
matrix:
image: [temurin, distroless]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: maven
- run: mvn -B -ntp verify -Dimage.tag.test=${{ matrix.image }} -Dk3s.skipRm
- name: Run kubectl logs -l app.kubernetes.io/name=keycloak
run: export KUBECONFIG=/home/runner/.kube/k3s-maven-plugin/mount/kubeconfig.yaml && kubectl logs -l app.kubernetes.io/name=keycloak --tail -1
if: ${{ failure() }}