From 58634756d3c03daefe7d8289982eb1e20679a8bf Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 18:51:31 +0000 Subject: [PATCH 01/10] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f19d17e..2bb0a0d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,17 @@ include: - project: 'developerdurp/yml' ref: main - file: 'pipelines/build-container.yml' \ No newline at end of file + file: 'pipelines/build-container.yml' + +default: + image: dtzar/helm-kubectl + before_script: + - 'helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable' +stages: + - build +upload: + stage: upload + script: + - helm package ./charts/durpapi + - 'helm plugin install https://github.com/chartmuseum/helm-push.git' + - 'helm push ./durpapi-0.1.0.tgz ${CI_PROJECT_NAME}' From 261974b8314c831a0e6a71d16d780995a88e9f19 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 18:52:37 +0000 Subject: [PATCH 02/10] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2bb0a0d..72afd0b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,15 +3,11 @@ include: ref: main file: 'pipelines/build-container.yml' -default: - image: dtzar/helm-kubectl - before_script: - - 'helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable' -stages: - - build upload: - stage: upload + image: dtzar/helm-kubectl + stage: build script: + - 'helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable' - helm package ./charts/durpapi - 'helm plugin install https://github.com/chartmuseum/helm-push.git' - 'helm push ./durpapi-0.1.0.tgz ${CI_PROJECT_NAME}' From d2fb2164e76ade83712d1853c00688ee887810f2 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 18:56:11 +0000 Subject: [PATCH 03/10] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 72afd0b..5741d86 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ upload: image: dtzar/helm-kubectl stage: build script: - - 'helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable' + - 'helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} "${CI_SERVER_URL}/api/v4/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"' - helm package ./charts/durpapi - 'helm plugin install https://github.com/chartmuseum/helm-push.git' - 'helm push ./durpapi-0.1.0.tgz ${CI_PROJECT_NAME}' From cf5f67232fb88e260dee9cdda9db39d6f13413d8 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 18:57:14 +0000 Subject: [PATCH 04/10] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5741d86..cf56bf5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,7 +7,7 @@ upload: image: dtzar/helm-kubectl stage: build script: - - 'helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} "${CI_SERVER_URL}/api/v4/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"' + - helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable - helm package ./charts/durpapi - 'helm plugin install https://github.com/chartmuseum/helm-push.git' - 'helm push ./durpapi-0.1.0.tgz ${CI_PROJECT_NAME}' From f3f4a0d55d08a4e198e3a2b9c72c1479fc528991 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 18:59:23 +0000 Subject: [PATCH 05/10] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cf56bf5..2b56200 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,5 +9,5 @@ upload: script: - helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable - helm package ./charts/durpapi - - 'helm plugin install https://github.com/chartmuseum/helm-push.git' - - 'helm push ./durpapi-0.1.0.tgz ${CI_PROJECT_NAME}' + - helm plugin install https://github.com/chartmuseum/helm-push + - helm cm-push ./durpapi-0.1.0.tgz ${CI_PROJECT_NAME} From 6c2929094086d4dba61414f4f33522c148a8b44e Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 19:19:00 +0000 Subject: [PATCH 06/10] Update file deployment.yaml --- charts/durpapi/templates/deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charts/durpapi/templates/deployment.yaml b/charts/durpapi/templates/deployment.yaml index 7dcf5f5..05c72af 100644 --- a/charts/durpapi/templates/deployment.yaml +++ b/charts/durpapi/templates/deployment.yaml @@ -17,7 +17,7 @@ spec: spec: containers: - name: durpapi - image: ghcr.io/developerdurp/durpapi:latest + image: registry.gitlab.com/developerdurp/durpapi imagePullPolicy: Always ports: - name: http From 5971b1b7cfaff1f5090f1d2ae5f7fb0ba2683117 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 19:21:24 +0000 Subject: [PATCH 07/10] update --- charts/durpapi/templates/secret.yaml | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 charts/durpapi/templates/secret.yaml diff --git a/charts/durpapi/templates/secret.yaml b/charts/durpapi/templates/secret.yaml deleted file mode 100644 index fbc911e..0000000 --- a/charts/durpapi/templates/secret.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -data: - OPENAI_API_KEY: - UNRAID_API_KEY: - UNRAID_URI: - jwtToken: -kind: Secret -metadata: - creationTimestamp: null - name: durpapi-secret - namespace: durpapi From b928b7313544879d1b4155db72f3d7f1e22b0476 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 19:42:03 +0000 Subject: [PATCH 08/10] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2b56200..bdd3f1c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,12 +2,3 @@ include: - project: 'developerdurp/yml' ref: main file: 'pipelines/build-container.yml' - -upload: - image: dtzar/helm-kubectl - stage: build - script: - - helm repo add --username gitlab-ci-token --password ${CI_JOB_TOKEN} ${CI_PROJECT_NAME} ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/stable - - helm package ./charts/durpapi - - helm plugin install https://github.com/chartmuseum/helm-push - - helm cm-push ./durpapi-0.1.0.tgz ${CI_PROJECT_NAME} From cf3757e21fee524458ae61bba2bcce892a9264a9 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 19:42:27 +0000 Subject: [PATCH 09/10] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bdd3f1c..2d73797 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,3 +2,6 @@ include: - project: 'developerdurp/yml' ref: main file: 'pipelines/build-container.yml' + +variables: + GITVERSION: 1.0.0 \ No newline at end of file From 97036ea05e378083a9395044e66d38c473f2ef30 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Sun, 9 Apr 2023 20:22:34 +0000 Subject: [PATCH 10/10] Update file .gitlab-ci.yml --- .gitlab-ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2d73797..f19d17e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,4 @@ include: - project: 'developerdurp/yml' ref: main - file: 'pipelines/build-container.yml' - -variables: - GITVERSION: 1.0.0 \ No newline at end of file + file: 'pipelines/build-container.yml' \ No newline at end of file