From a84d495d27327f2af80af1c16203b43b0d008b83 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 11:43:35 +0000 Subject: [PATCH 01/15] test workflow --- .gitea/workflows/test.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitea/workflows/test.yaml diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..f947216 --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,21 @@ +name: Build and Test + +on: + pull_request: + push: + branches: + - main + - releases/* + +jobs: + build: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 # all history for all branches and tags + - run: apt install helm -y + - run: helm lint . \ No newline at end of file -- 2.47.2 From b2c2a8a0da1b93c6ee85f005a38804012760f11a Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 11:46:21 +0000 Subject: [PATCH 02/15] .gitea/workflows/test.yaml aktualisiert --- .gitea/workflows/test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index f947216..aef8201 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -18,4 +18,5 @@ jobs: with: fetch-depth: 0 # all history for all branches and tags - run: apt install helm -y - - run: helm lint . \ No newline at end of file + - run: helm lint . + - run: helm package . \ No newline at end of file -- 2.47.2 From 27ac839440eee3489eeb1eb9bcce7b5594cba685 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 11:49:48 +0000 Subject: [PATCH 03/15] update test file --- .gitea/workflows/test.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index aef8201..03ae290 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -17,6 +17,9 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 # all history for all branches and tags - - run: apt install helm -y - - run: helm lint . - - run: helm package . \ No newline at end of file + - name: Install Helm + run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash + - name: Lint Helm Chart + run: helm lint . + - name: pack helm release + run: helm package . \ No newline at end of file -- 2.47.2 From 0baec568f3d71a444797139ab0a49ccbd911bda2 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:01:19 +0000 Subject: [PATCH 04/15] Build and Push workflow on Push into Master Repo --- .gitea/workflows/push-helm-chart.yaml | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/push-helm-chart.yaml diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml new file mode 100644 index 0000000..1dda051 --- /dev/null +++ b/.gitea/workflows/push-helm-chart.yaml @@ -0,0 +1,33 @@ +name: Build and Push + +on: + push: + branches: + - master + - releases/* + +jobs: + build: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 # all history for all branches and tags + - name: Install Helm + run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash + - name: Lint Helm Chart + run: helm lint . + - name: pack helm release + run: helm package . + push: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: Get Package Name + run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT + - name: Push to Package Repo + run: curl --user $HELM_USER:$HELM_PASSWD -X POST --upload-file ./$PACKAGE_NAME.tgz https://gitea.simonzeyer.de/api/packages/schuelerlabor-cleverlab/helm/api/charts -- 2.47.2 From ee24ccac8c9c68cf9465f7d35ca907513c4bd74e Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:02:39 +0000 Subject: [PATCH 05/15] .gitea/workflows/push-helm-chart.yaml aktualisiert --- .gitea/workflows/push-helm-chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml index 1dda051..7dbfb86 100644 --- a/.gitea/workflows/push-helm-chart.yaml +++ b/.gitea/workflows/push-helm-chart.yaml @@ -30,4 +30,4 @@ jobs: - name: Get Package Name run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT - name: Push to Package Repo - run: curl --user $HELM_USER:$HELM_PASSWD -X POST --upload-file ./$PACKAGE_NAME.tgz https://gitea.simonzeyer.de/api/packages/schuelerlabor-cleverlab/helm/api/charts + run: curl --user $HELM_USER:$HELM_PASSWD -X POST --upload-file ./$PACKAGE_NAME.tgz $HELM_REPO -- 2.47.2 From 8377ef5c7ed154f1f26e6481989578b68fd95b62 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:15:26 +0000 Subject: [PATCH 06/15] .gitea/workflows/push-helm-chart.yaml aktualisiert --- .gitea/workflows/push-helm-chart.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml index 7dbfb86..25ffa25 100644 --- a/.gitea/workflows/push-helm-chart.yaml +++ b/.gitea/workflows/push-helm-chart.yaml @@ -1,6 +1,7 @@ name: Build and Push on: + pull_request: push: branches: - master -- 2.47.2 From d4077490c3f914458bd3e53e210840c06ee510ed Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:17:34 +0000 Subject: [PATCH 07/15] .gitea/workflows/push-helm-chart.yaml aktualisiert --- .gitea/workflows/push-helm-chart.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml index 25ffa25..41216f8 100644 --- a/.gitea/workflows/push-helm-chart.yaml +++ b/.gitea/workflows/push-helm-chart.yaml @@ -28,6 +28,12 @@ jobs: container: image: catthehacker/ubuntu:act-latest steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 # all history for all branches and tags + - name: Install Helm + run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - name: Get Package Name run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT - name: Push to Package Repo -- 2.47.2 From dd540abbe454ab28ac8798e92cc39b1c37bdc714 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:19:32 +0000 Subject: [PATCH 08/15] variablennamen angepasst --- .gitea/workflows/push-helm-chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml index 41216f8..33807d3 100644 --- a/.gitea/workflows/push-helm-chart.yaml +++ b/.gitea/workflows/push-helm-chart.yaml @@ -37,4 +37,4 @@ jobs: - name: Get Package Name run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT - name: Push to Package Repo - run: curl --user $HELM_USER:$HELM_PASSWD -X POST --upload-file ./$PACKAGE_NAME.tgz $HELM_REPO + run: curl --user ${HELM_USER}:${HELM_PASSWD} -X POST --upload-file ./${PACKAGE_NAME} ${HELM_REPO} -- 2.47.2 From 8c4a664bc6365f2cc247b0625d4b94f8256643ea Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:23:00 +0000 Subject: [PATCH 09/15] .gitea/workflows/push-helm-chart.yaml aktualisiert --- .gitea/workflows/push-helm-chart.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml index 33807d3..15b330a 100644 --- a/.gitea/workflows/push-helm-chart.yaml +++ b/.gitea/workflows/push-helm-chart.yaml @@ -21,8 +21,6 @@ jobs: run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - name: Lint Helm Chart run: helm lint . - - name: pack helm release - run: helm package . push: runs-on: ubuntu-latest container: @@ -34,7 +32,12 @@ jobs: fetch-depth: 0 # all history for all branches and tags - name: Install Helm run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash + - name: pack helm release + run: helm package . - name: Get Package Name run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT + - run: echo ${HELM_USER}>> $GITHUB_OUTPUT + - run: echo ${PACKAGE_NAME}>> $GITHUB_OUTPUT + - run: echo ${HELM_REPO}>> $GITHUB_OUTPUT - name: Push to Package Repo run: curl --user ${HELM_USER}:${HELM_PASSWD} -X POST --upload-file ./${PACKAGE_NAME} ${HELM_REPO} -- 2.47.2 From c5bb8000ba3a3bd13bcc6fd9e737ead3b993a703 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:23:58 +0000 Subject: [PATCH 10/15] .gitea/workflows/push-helm-chart.yaml aktualisiert --- .gitea/workflows/push-helm-chart.yaml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml index 15b330a..0f80f21 100644 --- a/.gitea/workflows/push-helm-chart.yaml +++ b/.gitea/workflows/push-helm-chart.yaml @@ -8,19 +8,6 @@ on: - releases/* jobs: - build: - runs-on: ubuntu-latest - container: - image: catthehacker/ubuntu:act-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 # all history for all branches and tags - - name: Install Helm - run: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash - - name: Lint Helm Chart - run: helm lint . push: runs-on: ubuntu-latest container: -- 2.47.2 From dc2264f128a41691305a62ba7248398b088a7186 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:25:22 +0000 Subject: [PATCH 11/15] .gitea/workflows/push-helm-chart.yaml aktualisiert --- .gitea/workflows/push-helm-chart.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml index 0f80f21..3e5d122 100644 --- a/.gitea/workflows/push-helm-chart.yaml +++ b/.gitea/workflows/push-helm-chart.yaml @@ -23,8 +23,11 @@ jobs: run: helm package . - name: Get Package Name run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT - - run: echo ${HELM_USER}>> $GITHUB_OUTPUT - - run: echo ${PACKAGE_NAME}>> $GITHUB_OUTPUT - - run: echo ${HELM_REPO}>> $GITHUB_OUTPUT + - run: echo ${HELM_USER} + - run: echo ${PACKAGE_NAME} + - run: echo ${HELM_REPO} + - run: echo $HELM_USER + - run: echo $PACKAGE_NAME + - run: echo $HELM_REPO - name: Push to Package Repo run: curl --user ${HELM_USER}:${HELM_PASSWD} -X POST --upload-file ./${PACKAGE_NAME} ${HELM_REPO} -- 2.47.2 From 46706c43b5f831459414b8b71d2352baeb594ad1 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:29:32 +0000 Subject: [PATCH 12/15] .gitea/workflows/push-helm-chart.yaml aktualisiert --- .gitea/workflows/push-helm-chart.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml index 3e5d122..201ed0c 100644 --- a/.gitea/workflows/push-helm-chart.yaml +++ b/.gitea/workflows/push-helm-chart.yaml @@ -22,12 +22,8 @@ jobs: - name: pack helm release run: helm package . - name: Get Package Name + id: meta run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT - - run: echo ${HELM_USER} - - run: echo ${PACKAGE_NAME} - - run: echo ${HELM_REPO} - - run: echo $HELM_USER - - run: echo $PACKAGE_NAME - - run: echo $HELM_REPO + - run: echo "${{ env.HELM_REPO }} ${{ secrets.HELM_USER }}. Today is ${{ steps.meta.outputs.PACKAGE_NAME }}!" - name: Push to Package Repo - run: curl --user ${HELM_USER}:${HELM_PASSWD} -X POST --upload-file ./${PACKAGE_NAME} ${HELM_REPO} + run: curl --user ${{ secrets.HELM_USER }}:${{ secrets.HELM_PASSWD }} -X POST --upload-file ./${{ steps.meta.outputs.PACKAGE_NAME }} ${{ env.HELM_REPO }} -- 2.47.2 From 32b971ec0692a6bb9b39e51dd95e7ef3bd8e6985 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:32:20 +0000 Subject: [PATCH 13/15] .gitea/workflows/push-helm-chart.yaml aktualisiert --- .gitea/workflows/push-helm-chart.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml index 201ed0c..1d5f520 100644 --- a/.gitea/workflows/push-helm-chart.yaml +++ b/.gitea/workflows/push-helm-chart.yaml @@ -24,6 +24,5 @@ jobs: - name: Get Package Name id: meta run: echo PACKAGE_NAME=$(ls | grep .tgz) >> $GITHUB_OUTPUT - - run: echo "${{ env.HELM_REPO }} ${{ secrets.HELM_USER }}. Today is ${{ steps.meta.outputs.PACKAGE_NAME }}!" - name: Push to Package Repo - run: curl --user ${{ secrets.HELM_USER }}:${{ secrets.HELM_PASSWD }} -X POST --upload-file ./${{ steps.meta.outputs.PACKAGE_NAME }} ${{ env.HELM_REPO }} + run: curl --user ${{ secrets.HELM_USER }}:${{ secrets.HELM_PASSWD }} -X POST --upload-file ./${{ steps.meta.outputs.PACKAGE_NAME }} https://gitea.simonzeyer.de/api/packages/schuelerlabor-cleverlab/helm/api/charts -- 2.47.2 From 8cabcd678a64eafca05ed9929b05ae0b4906c591 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:34:59 +0000 Subject: [PATCH 14/15] .gitea/workflows/push-helm-chart.yaml aktualisiert --- .gitea/workflows/push-helm-chart.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitea/workflows/push-helm-chart.yaml b/.gitea/workflows/push-helm-chart.yaml index 1d5f520..950a36f 100644 --- a/.gitea/workflows/push-helm-chart.yaml +++ b/.gitea/workflows/push-helm-chart.yaml @@ -1,7 +1,6 @@ name: Build and Push on: - pull_request: push: branches: - master -- 2.47.2 From 1a32ab2d84ef8d8cd5895b5d2ee8434161c49603 Mon Sep 17 00:00:00 2001 From: simon Date: Sun, 25 Feb 2024 12:35:14 +0000 Subject: [PATCH 15/15] .gitea/workflows/test.yaml aktualisiert --- .gitea/workflows/test.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 03ae290..c009c89 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -2,10 +2,6 @@ name: Build and Test on: pull_request: - push: - branches: - - main - - releases/* jobs: build: -- 2.47.2