From 549f9b9cd6c8ab7472d1b3e1151435968516636d Mon Sep 17 00:00:00 2001 From: Felix Niederer Date: Fri, 20 Oct 2023 14:38:04 +0200 Subject: [PATCH] init --- .github/dependabot.yml | 18 ++++++++++++++++++ .github/workflows/semantic-release.yaml | 22 ++++++++++++++++++++++ .github/workflows/shellcheck.yaml | 11 +++++++++++ Dockerfile | 9 +++++++++ 4 files changed, 60 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/semantic-release.yaml create mode 100644 .github/workflows/shellcheck.yaml create mode 100644 Dockerfile diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..65bc053 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,18 @@ +version: 2 +updates: + # Update Dockerfile + - package-ecosystem: "docker" + directory: "/" + schedule: + interval: "daily" + commit-message: + prefix: "feat: " + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + commit-message: + prefix: "chore(ci): " + open-pull-requests-limit: 10 diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml new file mode 100644 index 0000000..1d8d2a6 --- /dev/null +++ b/.github/workflows/semantic-release.yaml @@ -0,0 +1,22 @@ +# runs on each push to main and is responsible for creating new tags/releases +name: Create Semantic Release + +on: + push: + branches: + - main + +jobs: + semantic-release: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Run go-semantic-release + id: semrel + uses: go-semantic-release/action@v1.21 + with: + github-token: ${{ secrets.PAT }} + allow-initial-development-versions: true diff --git a/.github/workflows/shellcheck.yaml b/.github/workflows/shellcheck.yaml new file mode 100644 index 0000000..84ccc54 --- /dev/null +++ b/.github/workflows/shellcheck.yaml @@ -0,0 +1,11 @@ +name: Shellcheck +on: pull_request +jobs: + shellcheck: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Run shellcheck + id: shellcheck + uses: ludeeus/action-shellcheck@2.0.0 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0a1952e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM quay.io/keycloak/keycloak:22.0.0 + +# Enable health and metrics support +ENV KC_HEALTH_ENABLED=true +ENV KC_METRICS_ENABLED=true + + +# build customized keycloak binaries +RUN /opt/keycloak/bin/kc.sh build