From 8a711f5328ec0c1b7de6abae2537f5794a34b1a4 Mon Sep 17 00:00:00 2001 From: Yanis JEDRZEJCZAK Date: Tue, 7 May 2024 14:28:27 +0200 Subject: [PATCH 1/3] removing old env --- .github/workflows/prd.yml | 3 --- .github/workflows/stg.yml | 4 ---- 2 files changed, 7 deletions(-) diff --git a/.github/workflows/prd.yml b/.github/workflows/prd.yml index e72df93e..1937379a 100644 --- a/.github/workflows/prd.yml +++ b/.github/workflows/prd.yml @@ -5,9 +5,6 @@ on: branches: [main] env: - PROJECT_ID: c0ed1e9e-d945-461f-920c-98c844ef1ad4 - NAMESPACE_ID: 17374437-5428-468c-9f41-d89787ffce0e - CONTAINER_REGISTRY_ENDPOINT: rg.fr-par.scw.cloud/funcscwlecoffreprdg7h5bbub PROJECT_ID_LECOFFRE: 72d08499-37c2-412b-877e-f8af0471654a NAMESPACE_ID_LECOFFRE: 8fbbce9d-31d1-4368-94c4-445e79f10834 diff --git a/.github/workflows/stg.yml b/.github/workflows/stg.yml index 9cafbfb7..3685d953 100644 --- a/.github/workflows/stg.yml +++ b/.github/workflows/stg.yml @@ -5,10 +5,6 @@ on: branches: [staging] env: - PROJECT_ID: c0ed1e9e-d945-461f-920c-98c844ef1ad4 - NAMESPACE_ID: 9f949ff2-97bc-4979-ade2-1994dcaabde0 - CONTAINER_REGISTRY_ENDPOINT: rg.fr-par.scw.cloud/funcscwlecoffrestgqhhn4ixh - PROJECT_ID_LECOFFRE: 72d08499-37c2-412b-877e-f8af0471654a NAMESPACE_ID_LECOFFRE: f8137e85-47ad-46a5-9e2e-18af5de829c5 CONTAINER_REGISTRY_ENDPOINT_LECOFFRE: rg.fr-par.scw.cloud/funcscwlecoffrestgbqbfhtv6 From 82540458582206567f97edb2ffefecf8b123b259 Mon Sep 17 00:00:00 2001 From: Yanis JEDRZEJCZAK Date: Tue, 7 May 2024 14:28:58 +0200 Subject: [PATCH 2/3] removing circle ci configs --- .circleci/config.yml | 105 ------------------------------------------- 1 file changed, 105 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 6f2d2815..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,105 +0,0 @@ -version: 2.1 - -orbs: - kubernetes: circleci/kubernetes@1.0.0 - helm: circleci/helm@2.0.1 - -jobs: - - build-push-docker-image: - docker: - - image: cimg/base:stable - environment: - TAG: << pipeline.git.tag >> - steps: - - checkout - - add_ssh_keys: - fingerprints: - - "4c:8e:00:16:94:44:d9:ad:e9:e9:2c:8b:02:d4:8d:7a" - - run: cp $HOME/.ssh/id_rsa_4c8e00169444d9ade9e92c8b02d48d7a id_rsa - - setup_remote_docker: - version: 20.10.12 - docker_layer_caching: true - - run: docker login rg.fr-par.scw.cloud/lecoffre -u nologin -p $SCW_SECRET_KEY_BIS - - run: docker build --tag rg.fr-par.scw.cloud/lecoffre/back:${CIRCLE_SHA1:0:7} . - - run: docker push rg.fr-par.scw.cloud/lecoffre/back:${CIRCLE_SHA1:0:7} - - - deploy-docker-image: - docker: - - image: cimg/base:stable - environment: - TAG: << pipeline.git.tag >> - parameters: - env: - type: string - default: ppd - steps: - - checkout - - kubernetes/install-kubeconfig: - kubeconfig: KUBECONFIG_DATA - - helm/install-helm-client - - run: - name: Deploy - command: > - helm upgrade - lecoffre-back devops/ -i -f devops/<>.values.yaml - -n lecoffre-<> - --create-namespace - --set lecoffreBack.image.repository='rg.fr-par.scw.cloud/lecoffre/back' - --set lecoffreBack.image.tag=${CIRCLE_SHA1:0:7} - --set lecoffreCron.image.repository='rg.fr-par.scw.cloud/lecoffre/back' - --set lecoffreCron.image.tag=${CIRCLE_SHA1:0:7} - - - -workflows: - version: 2 - build-and-register-stg: - jobs: - - build-push-docker-image: - filters: - branches: - only: staging - - deploy-docker-image: - env: stg - requires: - - build-push-docker-image - context: - - sc-shared-prd - filters: - branches: - only: staging - - build-and-register-ppd: - jobs: - - build-push-docker-image: - filters: - branches: - only: preprod - - deploy-docker-image: - env: ppd - requires: - - build-push-docker-image - context: - - sc-shared-prd - filters: - branches: - only: preprod - - build-and-register-prd: - jobs: - - build-push-docker-image: - filters: - branches: - only: main - - deploy-docker-image: - env: prd - requires: - - build-push-docker-image - context: - - sc-shared-prd - filters: - branches: - only: main - From 48beb1c356749cab33cc96e315ab8657dcdc188d Mon Sep 17 00:00:00 2001 From: Yanis JEDRZEJCZAK Date: Tue, 7 May 2024 14:29:23 +0200 Subject: [PATCH 3/3] removing kube ci configs --- devops/.helmignore | 23 -------- devops/Chart.yaml | 25 -------- devops/ppd.values.yaml | 57 ------------------ devops/prd.values.yaml | 57 ------------------ devops/stg.values.yaml | 57 ------------------ devops/templates/docker-pull-secret.yaml | 19 ------ devops/templates/lecoffre-back.yaml | 74 ------------------------ devops/templates/lecoffre-cron.yaml | 37 ------------ devops/templates/sealed-secret.yaml | 12 ---- devops/templates/secret-store.yaml | 15 ----- devops/templates/secrets.yaml | 16 ----- devops/templates/service-account.yaml | 30 ---------- devops/values.yaml | 36 ------------ 13 files changed, 458 deletions(-) delete mode 100644 devops/.helmignore delete mode 100644 devops/Chart.yaml delete mode 100644 devops/ppd.values.yaml delete mode 100644 devops/prd.values.yaml delete mode 100644 devops/stg.values.yaml delete mode 100644 devops/templates/docker-pull-secret.yaml delete mode 100644 devops/templates/lecoffre-back.yaml delete mode 100644 devops/templates/lecoffre-cron.yaml delete mode 100644 devops/templates/sealed-secret.yaml delete mode 100644 devops/templates/secret-store.yaml delete mode 100644 devops/templates/secrets.yaml delete mode 100644 devops/templates/service-account.yaml delete mode 100644 devops/values.yaml diff --git a/devops/.helmignore b/devops/.helmignore deleted file mode 100644 index 691fa13d..00000000 --- a/devops/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ \ No newline at end of file diff --git a/devops/Chart.yaml b/devops/Chart.yaml deleted file mode 100644 index 91793269..00000000 --- a/devops/Chart.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: v2 -name: leCoffre-back -description: A Helm chart for Kubernetes - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.0.1 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: 0.5.7 - diff --git a/devops/ppd.values.yaml b/devops/ppd.values.yaml deleted file mode 100644 index 78ece8a3..00000000 --- a/devops/ppd.values.yaml +++ /dev/null @@ -1,57 +0,0 @@ --tpdockerPullSecret: docker-pull-secret - -scwSecretKey: AgChoEnPitXp4Ny/rVMEcevaWKNVpyj2cJYAcq+yFqKwVwnLB+ffDvwqz9XBHu+6d4Nyyjkf37zUAMoaM21lEDWA7x3zfG2/D/j+rvX1qxzZgLD0mjBk7fGElVm332I6JA83oInes8AMMYEDPLElzHnpKRb9KtkIP4NzgOcCeW0ijft3N7Vroez6LEHsBPCA1I9XjKSkGEDvrO0MhWX3iJOlfz+SPMfJAV7rPawOs0ZmohTHrPW8qIvGDn8HCzKyU8zRBoMt+Ogpf5pH4U3JryEFuqD61KAQgablAM8edPIvsgNno9HAEuC2QtRLYA9aUhuKdaKuS58c9P2E80PHWXIlbpFCg6EugQTgNfnYp+3qDUNz8edeCfapYLvF4s9eCMGyMsGnpDR8EDNOyuGy7Y3l7okX8Xqu464gMp9E+hX7bHkcD6a4xfyIgJcWxsku0tm1TH1dpn4M1UXRuyZZif8P08nuE6MTUL67sAR9J1lpn4lVEL4kflk0pP2tZ5ncgPQFafJrRz05krMb0eU5tb2H4gs7ao/LL6idWo8MM9K1yr8lIuT5x2WW5CX+RjA+i50ex114V6vX3PNP5oVyt+DynTUB9QmXzVm3oLfDc3Cae1uqh7X0CFd+xiztJBtg0VtJaD/xUJcuWfY4cV2lERo9fRrykltzlJqiXHO4nowt8OtN0BcViVV8NJhPhYFzyb4ympxpOlTjm3GETuT2TYhUqdgS9nzleEAbOmOHZdIO2COunPE= - -lecoffreBack: - serviceAccountName: lecoffre-back-sa - command: "'sh', '-c', 'export $(xargs