From 7db3295c10e8ae9d245afe709738ab20aa21df41 Mon Sep 17 00:00:00 2001 From: Damien Duportal Date: Sat, 6 Jul 2024 09:21:35 +0200 Subject: [PATCH] feat: build and release with infra.ci and add arm64 image Signed-off-by: Damien Duportal --- .github/dependabot.yml | 7 +++++++ .github/release-drafter.yml | 4 ++++ .github/workflows/release-drafter.yml | 16 ++++++++++++++++ Dockerfile | 2 ++ Jenkinsfile_k8s | 7 +++++++ README.md | 4 +++- 6 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/release-drafter.yml create mode 100644 .github/workflows/release-drafter.yml create mode 100644 Jenkinsfile_k8s diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..900df32 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +--- +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..364976e --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,4 @@ +_extends: .github + +name-template: 'next' +tag-template: 'next' diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..783d1cc --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,16 @@ +name: Release Drafter +on: + workflow_dispatch: + push: + release: + types: [released] +# Only allow 1 release-drafter build at a time to avoid creating multiple "next" releases +concurrency: "release-drafter" +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@3f0f87098bd6b5c5b9a36d49c41d998ea58f9348 # v5 + env: + # This token is generated automatically by default in GitHub Actions: no need to create it manually + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/Dockerfile b/Dockerfile index 80f3950..a607397 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,2 +1,4 @@ +## Simple container only used to copy the theme data into a volume. No need to track version +# hadolint ignore=DL3006 FROM busybox COPY jenkins /jenkins diff --git a/Jenkinsfile_k8s b/Jenkinsfile_k8s new file mode 100644 index 0000000..1d9b6d1 --- /dev/null +++ b/Jenkinsfile_k8s @@ -0,0 +1,7 @@ +parallelDockerUpdatecli([ + imageName: 'keycloak-theme', + rebuildImageOnPeriodicJob: false, + buildDockerConfig : [ + targetplatforms: 'linux/amd64,linux/arm64' + ] +]) diff --git a/README.md b/README.md index 5ffc9c5..fdbc40f 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# keycloak-theme \ No newline at end of file +# keycloak-theme + +Simple container only used to copy the theme data into a volume.