From d3fe467f6fbb4ac07e32e7b2dbf0e7944cacf2a0 Mon Sep 17 00:00:00 2001 From: Daniel Richter Date: Sun, 12 Nov 2023 22:31:35 +0100 Subject: [PATCH 1/3] ci: add helm package/push to Jenkinsfile Signed-off-by: Daniel Richter --- Jenkinsfile | 20 ++++++++++++++++---- chart/stirling-pdf/Chart.yaml | 2 +- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dce948a4..d3cbe2c8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,12 +22,24 @@ pipeline { def appVersion = sh(returnStdout: true, script: './gradlew printVersion -q').trim() def image = "frooodle/s-pdf:$appVersion" withCredentials([string(credentialsId: 'docker_hub_access_token', variable: 'DOCKER_HUB_ACCESS_TOKEN')]) { - sh "docker login --username frooodle --password $DOCKER_HUB_ACCESS_TOKEN" + sh "docker login --username frooodle --password $DOCKER_HUB_ACCESS_TOKEN" sh "docker push $image" } } } - - } - } + } + stage('Helm Push') { + steps { + script { + //TODO: Read chartVersion from Chart.yaml + def chartVersion = '1.0.0' + withCredentials([string(credentialsId: 'docker_hub_access_token', variable: 'DOCKER_HUB_ACCESS_TOKEN')]) { + sh "docker login --username frooodle --password $DOCKER_HUB_ACCESS_TOKEN" + sh "helm package chart/stirling-pdf" + sh "helm push stirling-pdf-chart-1.0.0.tgz oci://registry-1.docker.io/frooodle" + } + } + } + } + } } \ No newline at end of file diff --git a/chart/stirling-pdf/Chart.yaml b/chart/stirling-pdf/Chart.yaml index 3482b36d..a69894a0 100644 --- a/chart/stirling-pdf/Chart.yaml +++ b/chart/stirling-pdf/Chart.yaml @@ -9,7 +9,7 @@ keywords: maintainers: - name: Frooodle url: https://github.com/Frooodle/Stirling-PDF -name: stirling-pdf +name: stirling-pdf-chart sources: - https://github.com/Frooodle/Stirling-PDF version: 1.0.0 From 0b666674f7c144a7a43b633c5cc1f3866ea5f27d Mon Sep 17 00:00:00 2001 From: Daniel Richter Date: Thu, 16 Nov 2023 23:04:32 +0100 Subject: [PATCH 2/3] fix(helm): move ci build to github actions Signed-off-by: Daniel Richter --- .github/workflows/push-docker.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/push-docker.yml b/.github/workflows/push-docker.yml index 50d03bcc..7c715bc2 100644 --- a/.github/workflows/push-docker.yml +++ b/.github/workflows/push-docker.yml @@ -140,3 +140,7 @@ jobs: tags: ${{ steps.meta3.outputs.tags }} labels: ${{ steps.meta3.outputs.labels }} platforms: linux/amd64,linux/arm64/v8 + - name: Build and Push Helm Chart + run: | + helm package chart/stirling-pdf + helm push stirling-pdf-chart-1.0.0.tgz oci://registry-1.docker.io/frooodle From 3fa5acc51c4f6f55337233f1e3e11ed1c627e64a Mon Sep 17 00:00:00 2001 From: digitalindependent <134142094+digitalindependent@users.noreply.github.com> Date: Sat, 2 Dec 2023 22:34:43 +0100 Subject: [PATCH 3/3] Typo fixed in HowToUseOCR.md ITS => IT'S --- HowToUseOCR.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HowToUseOCR.md b/HowToUseOCR.md index 37e33b5c..482999db 100644 --- a/HowToUseOCR.md +++ b/HowToUseOCR.md @@ -20,7 +20,7 @@ Depending on your requirements, you can choose the appropriate language pack for 1. Download the desired language pack(s) by selecting the `.traineddata` file(s) for the language(s) you need. 2. Place the `.traineddata` files in the Tesseract tessdata directory: `/usr/share/tesseract-ocr/4.00/tessdata` (Debian) or `/usr/share/tesseract/tessdata` (Fedora) -# DO NOT REMOVE EXISTING ENG.TRAINEDDATA, ITS REQUIRED. +# DO NOT REMOVE EXISTING ENG.TRAINEDDATA, IT'S REQUIRED. #### Docker