From 79660639d6b140a16d2822f7ddf5e023b8ab3735 Mon Sep 17 00:00:00 2001 From: Yanis JEDRZEJCZAK <145334613+yanis-jedrzejczak-smart@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:28:58 +0200 Subject: [PATCH 1/7] Fix prd.yml --- .github/workflows/prd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prd.yml b/.github/workflows/prd.yml index b6f017cf..dd997d7d 100644 --- a/.github/workflows/prd.yml +++ b/.github/workflows/prd.yml @@ -68,7 +68,7 @@ jobs: deploy-to-scaleway: needs: build-and-push-image runs-on: ubuntu-latest - environment: preprod + environment: prod steps: - name: Install CLI uses: scaleway/action-scw@v0 @@ -103,7 +103,7 @@ jobs: deploy-to-scaleway-lecoffre: needs: build-and-push-image-lecoffre runs-on: ubuntu-latest - environment: preprod + environment: prod steps: - name: Install CLI uses: scaleway/action-scw@v0 @@ -135,4 +135,4 @@ jobs: SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY_LECOFFRE }} SCW_DEFAULT_PROJECT_ID: ${{ env.PROJECT_ID_LECOFFRE }} SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID_LECOFFRE }} - \ No newline at end of file + From 784c398639050d15e92b0b305c99accf4af04af2 Mon Sep 17 00:00:00 2001 From: Yanis JEDRZEJCZAK Date: Fri, 26 Apr 2024 11:56:02 +0200 Subject: [PATCH 2/7] Removing deploys to old scaleway --- .github/workflows/ppd.yml | 65 +-------------------------------------- .github/workflows/prd.yml | 62 ------------------------------------- .github/workflows/stg.yml | 62 ------------------------------------- 3 files changed, 1 insertion(+), 188 deletions(-) diff --git a/.github/workflows/ppd.yml b/.github/workflows/ppd.yml index 6d71ae48..2864eeb6 100644 --- a/.github/workflows/ppd.yml +++ b/.github/workflows/ppd.yml @@ -4,11 +4,7 @@ on: push: branches: [preprod] -env: - PROJECT_ID: c0ed1e9e-d945-461f-920c-98c844ef1ad4 - NAMESPACE_ID: a052faf9-a712-41d7-bbfa-8293ee948e70 - CONTAINER_REGISTRY_ENDPOINT: rg.fr-par.scw.cloud/funcscwlecoffreppdw9e10llz - +env: PROJECT_ID_LECOFFRE: 72d08499-37c2-412b-877e-f8af0471654a NAMESPACE_ID_LECOFFRE: e975f056-967e-43fe-b237-84bfa8032e64 CONTAINER_REGISTRY_ENDPOINT_LECOFFRE: rg.fr-par.scw.cloud/funcscwlecoffreppdmp73pool @@ -17,30 +13,6 @@ env: CONTAINER_NAME: front jobs: - build-and-push-image: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup SSH - run: | - mkdir -p ~/.ssh - echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts - env: - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} - - name: Copy SSH - run: cp ~/.ssh/id_rsa id_rsa - - name: Login to Scaleway Container Registry - uses: docker/login-action@v3 - with: - username: nologin - password: ${{ secrets.SCW_SECRET_KEY }} - registry: ${{ env.CONTAINER_REGISTRY_ENDPOINT }} - - name: Build the Docker Image - run: docker build . -t ${{ env.CONTAINER_REGISTRY_ENDPOINT }}/${{ env.IMAGE_NAME }} - - name: Push the Docker Image to Scaleway Container Registry - run: docker push ${{ env.CONTAINER_REGISTRY_ENDPOINT }}/${{ env.IMAGE_NAME }} build-and-push-image-lecoffre: runs-on: ubuntu-latest steps: @@ -65,41 +37,6 @@ jobs: run: docker build . -t ${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }} - name: Push the Docker Image to Scaleway Container Registry run: docker push ${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }} - deploy-to-scaleway: - needs: build-and-push-image - runs-on: ubuntu-latest - environment: preprod - steps: - - name: Install CLI - uses: scaleway/action-scw@v0 - - name: Get container ID - run: | - echo "CONTAINER_ID=$(scw container container list namespace-id=${{env.NAMESPACE_ID}} -o json | jq -r '.[] | select(.name == "${{ env.CONTAINER_NAME }}") | .id')" >> $GITHUB_ENV - env: - SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} - SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} - SCW_DEFAULT_PROJECT_ID: ${{ env.PROJECT_ID }} - SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }} - - name: Deploy the container based on the new image - run: | - env_string="" - while IFS= read -r line; do - if [[ "$line" == *"="* ]]; then - key=$(echo "$line" | cut -d '=' -f 1) - value=$(echo "$line" | cut -d '=' -f 2-) - if [[ -n "$key" ]]; then - env_string+="environment-variables.$key=$value " - fi - fi - done <<< "$ENV_VARS" - env_string=$(echo $env_string | sed 's/ $//') - scw container container update ${{ env.CONTAINER_ID }} $env_string - env: - ENV_VARS: ${{ secrets.ENV }} - SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} - SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} - SCW_DEFAULT_PROJECT_ID: ${{ env.PROJECT_ID }} - SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }} deploy-to-scaleway-lecoffre: needs: build-and-push-image-lecoffre runs-on: ubuntu-latest diff --git a/.github/workflows/prd.yml b/.github/workflows/prd.yml index dd997d7d..e9102294 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 @@ -17,30 +14,6 @@ env: CONTAINER_NAME: front jobs: - build-and-push-image: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup SSH - run: | - mkdir -p ~/.ssh - echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts - env: - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} - - name: Copy SSH - run: cp ~/.ssh/id_rsa id_rsa - - name: Login to Scaleway Container Registry - uses: docker/login-action@v3 - with: - username: nologin - password: ${{ secrets.SCW_SECRET_KEY }} - registry: ${{ env.CONTAINER_REGISTRY_ENDPOINT }} - - name: Build the Docker Image - run: docker build . -t ${{ env.CONTAINER_REGISTRY_ENDPOINT }}/${{ env.IMAGE_NAME }} - - name: Push the Docker Image to Scaleway Container Registry - run: docker push ${{ env.CONTAINER_REGISTRY_ENDPOINT }}/${{ env.IMAGE_NAME }} build-and-push-image-lecoffre: runs-on: ubuntu-latest steps: @@ -65,41 +38,6 @@ jobs: run: docker build . -t ${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }} - name: Push the Docker Image to Scaleway Container Registry run: docker push ${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }} - deploy-to-scaleway: - needs: build-and-push-image - runs-on: ubuntu-latest - environment: prod - steps: - - name: Install CLI - uses: scaleway/action-scw@v0 - - name: Get container ID - run: | - echo "CONTAINER_ID=$(scw container container list namespace-id=${{env.NAMESPACE_ID}} -o json | jq -r '.[] | select(.name == "${{ env.CONTAINER_NAME }}") | .id')" >> $GITHUB_ENV - env: - SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} - SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} - SCW_DEFAULT_PROJECT_ID: ${{ env.PROJECT_ID }} - SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }} - - name: Deploy the container based on the new image - run: | - env_string="" - while IFS= read -r line; do - if [[ "$line" == *"="* ]]; then - key=$(echo "$line" | cut -d '=' -f 1) - value=$(echo "$line" | cut -d '=' -f 2-) - if [[ -n "$key" ]]; then - env_string+="environment-variables.$key=$value " - fi - fi - done <<< "$ENV_VARS" - env_string=$(echo $env_string | sed 's/ $//') - scw container container update ${{ env.CONTAINER_ID }} $env_string - env: - ENV_VARS: ${{ secrets.ENV }} - SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} - SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} - SCW_DEFAULT_PROJECT_ID: ${{ env.PROJECT_ID }} - SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }} deploy-to-scaleway-lecoffre: needs: build-and-push-image-lecoffre runs-on: ubuntu-latest diff --git a/.github/workflows/stg.yml b/.github/workflows/stg.yml index d159dfc9..703da63b 100644 --- a/.github/workflows/stg.yml +++ b/.github/workflows/stg.yml @@ -5,9 +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 @@ -17,30 +14,6 @@ env: CONTAINER_NAME: front jobs: - build-and-push-image: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Setup SSH - run: | - mkdir -p ~/.ssh - echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts - env: - SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} - - name: Copy SSH - run: cp ~/.ssh/id_rsa id_rsa - - name: Login to Scaleway Container Registry - uses: docker/login-action@v3 - with: - username: nologin - password: ${{ secrets.SCW_SECRET_KEY }} - registry: ${{ env.CONTAINER_REGISTRY_ENDPOINT }} - - name: Build the Docker Image - run: docker build . -t ${{ env.CONTAINER_REGISTRY_ENDPOINT }}/${{ env.IMAGE_NAME }} - - name: Push the Docker Image to Scaleway Container Registry - run: docker push ${{ env.CONTAINER_REGISTRY_ENDPOINT }}/${{ env.IMAGE_NAME }} build-and-push-image-lecoffre: runs-on: ubuntu-latest steps: @@ -65,41 +38,6 @@ jobs: run: docker build . -t ${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }} - name: Push the Docker Image to Scaleway Container Registry run: docker push ${{ env.CONTAINER_REGISTRY_ENDPOINT_LECOFFRE }}/${{ env.IMAGE_NAME }} - deploy-to-scaleway: - needs: build-and-push-image - runs-on: ubuntu-latest - environment: staging - steps: - - name: Install CLI - uses: scaleway/action-scw@v0 - - name: Get container ID - run: | - echo "CONTAINER_ID=$(scw container container list namespace-id=${{env.NAMESPACE_ID}} -o json | jq -r '.[] | select(.name == "${{ env.CONTAINER_NAME }}") | .id')" >> $GITHUB_ENV - env: - SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} - SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} - SCW_DEFAULT_PROJECT_ID: ${{ env.PROJECT_ID }} - SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }} - - name: Deploy the container based on the new image - run: | - env_string="" - while IFS= read -r line; do - if [[ "$line" == *"="* ]]; then - key=$(echo "$line" | cut -d '=' -f 1) - value=$(echo "$line" | cut -d '=' -f 2-) - if [[ -n "$key" ]]; then - env_string+="environment-variables.$key=$value " - fi - fi - done <<< "$ENV_VARS" - env_string=$(echo $env_string | sed 's/ $//') - scw container container update ${{ env.CONTAINER_ID }} $env_string - env: - ENV_VARS: ${{ secrets.ENV }} - SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }} - SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }} - SCW_DEFAULT_PROJECT_ID: ${{ env.PROJECT_ID }} - SCW_DEFAULT_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }} deploy-to-scaleway-lecoffre: needs: build-and-push-image-lecoffre runs-on: ubuntu-latest From 85490298bc9d932527693c87408ef3efa674a1be Mon Sep 17 00:00:00 2001 From: Yanis JEDRZEJCZAK Date: Fri, 26 Apr 2024 15:01:58 +0200 Subject: [PATCH 3/7] Removing deploys from circle --- devops/prd.values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devops/prd.values.yaml b/devops/prd.values.yaml index 46388be2..549b5fe4 100644 --- a/devops/prd.values.yaml +++ b/devops/prd.values.yaml @@ -18,10 +18,10 @@ lecoffreFront: limits: memory: 2Gi ingress: - host: www.app.lecoffre.io + host: api-tp.lecoffre.smart-chain.fr tls: hosts: - - www.app.lecoffre.io + - api-tp.lecoffre.smart-chain.fr secretName: front-tls annotations: kubernetes.io/ingress.class: nginx From d71fb2ae191065df955f2eb1bf475c53ced37682 Mon Sep 17 00:00:00 2001 From: Yanis JEDRZEJCZAK Date: Mon, 29 Apr 2024 09:49:34 +0200 Subject: [PATCH 4/7] Revert deploy changes --- devops/prd.values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devops/prd.values.yaml b/devops/prd.values.yaml index 549b5fe4..46388be2 100644 --- a/devops/prd.values.yaml +++ b/devops/prd.values.yaml @@ -18,10 +18,10 @@ lecoffreFront: limits: memory: 2Gi ingress: - host: api-tp.lecoffre.smart-chain.fr + host: www.app.lecoffre.io tls: hosts: - - api-tp.lecoffre.smart-chain.fr + - www.app.lecoffre.io secretName: front-tls annotations: kubernetes.io/ingress.class: nginx From d3851c11b675819f4fcfe1adf921be47bd5dfacc Mon Sep 17 00:00:00 2001 From: Yanis JEDRZEJCZAK Date: Mon, 29 Apr 2024 10:33:42 +0200 Subject: [PATCH 5/7] Removing deploys from circle --- devops/prd.values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devops/prd.values.yaml b/devops/prd.values.yaml index 46388be2..d1636fed 100644 --- a/devops/prd.values.yaml +++ b/devops/prd.values.yaml @@ -18,10 +18,10 @@ lecoffreFront: limits: memory: 2Gi ingress: - host: www.app.lecoffre.io + host: app-tp.lecoffre.smart-chain.fr tls: hosts: - - www.app.lecoffre.io + - app-tp.lecoffre.smart-chain.fr secretName: front-tls annotations: kubernetes.io/ingress.class: nginx From 2137c11f3e225b9eb86e277bf5a8a399a8e8462a Mon Sep 17 00:00:00 2001 From: Yanis JEDRZEJCZAK Date: Tue, 7 May 2024 14:29:04 +0200 Subject: [PATCH 6/7] removing circle ci configs --- .circleci/config.yml | 210 ------------------------------------------- 1 file changed, 210 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index d0f458b1..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,210 +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 - parameters: - NEXT_PUBLIC_BACK_API_HOST: - type: string - default: "" - NEXT_PUBLIC_BACK_API_PROTOCOL: - type: string - default: "" - NEXT_PUBLIC_BACK_API_ROOT_URL: - type: string - default: "" - NEXT_PUBLIC_BACK_API_VERSION: - type: string - default: "" - NEXT_PUBLIC_FC_AUTHORIZE_ENDPOINT: - type: string - default: "" - NEXT_PUBLIC_FC_CLIENT_ID: - type: string - default: "" - NEXT_PUBLIC_FRONT_APP_HOST: - type: string - default: "" - NEXT_PUBLIC_FRONT_APP_PORT: - type: string - default: "" - NEXT_PUBLIC_IDNOT_BASE_URL: - type: string - default: "" - NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT: - type: string - default: "" - NEXT_PUBLIC_IDNOT_CLIENT_ID: - type: string - default: "" - NEXT_PUBLIC_DOCAPOST_API_URL: - type: string - default: "" - NEXT_PUBLIC_DOCAPOST_DOCUMENT_PROCESS_ID: - type: string - default: "" - NEXT_PUBLIC_DOCAPOST_CONNECT_PROCESS_ID: - type: string - default: "" - NEXT_PUBLIC_DOCAPOST_APP_ID: - type: string - default: "" - environment: - TAG: << pipeline.git.tag >> - NEXT_PUBLIC_BACK_API_HOST: << parameters.NEXT_PUBLIC_BACK_API_HOST >> - NEXT_PUBLIC_BACK_API_PROTOCOL: << parameters.NEXT_PUBLIC_BACK_API_PROTOCOL >> - NEXT_PUBLIC_BACK_API_ROOT_URL: << parameters.NEXT_PUBLIC_BACK_API_ROOT_URL >> - NEXT_PUBLIC_BACK_API_VERSION: << parameters.NEXT_PUBLIC_BACK_API_VERSION >> - NEXT_PUBLIC_FC_AUTHORIZE_ENDPOINT: << parameters.NEXT_PUBLIC_FC_AUTHORIZE_ENDPOINT >> - NEXT_PUBLIC_FC_CLIENT_ID: << parameters.NEXT_PUBLIC_FC_CLIENT_ID >> - NEXT_PUBLIC_FRONT_APP_HOST: << parameters.NEXT_PUBLIC_FRONT_APP_HOST >> - NEXT_PUBLIC_FRONT_APP_PORT: << parameters.NEXT_PUBLIC_FRONT_APP_PORT >> - NEXT_PUBLIC_IDNOT_BASE_URL: << parameters.NEXT_PUBLIC_IDNOT_BASE_URL >> - NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT: << parameters.NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT >> - NEXT_PUBLIC_IDNOT_CLIENT_ID: << parameters.NEXT_PUBLIC_IDNOT_CLIENT_ID >> - NEXT_PUBLIC_DOCAPOST_API_URL: << parameters.NEXT_PUBLIC_DOCAPOST_API_URL >> - NEXT_PUBLIC_DOCAPOST_DOCUMENT_PROCESS_ID: << parameters.NEXT_PUBLIC_DOCAPOST_DOCUMENT_PROCESS_ID >> - NEXT_PUBLIC_DOCAPOST_CONNECT_PROCESS_ID: << parameters.NEXT_PUBLIC_DOCAPOST_CONNECT_PROCESS_ID >> - NEXT_PUBLIC_DOCAPOST_APP_ID: << parameters.NEXT_PUBLIC_DOCAPOST_APP_ID >> - steps: - - checkout - - add_ssh_keys: - fingerprints: - - "39:25:57:64:62:43:1f:98:b1:5e:75:53:87:d8:e7:71" - - run: cp $HOME/.ssh/id_rsa_3925576462431f98b15e755387d8e771 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/front:${CIRCLE_SHA1:0:7} . - - run: docker push rg.fr-par.scw.cloud/lecoffre/front:${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-front devops/ -i -f devops/<>.values.yaml - -n lecoffre-<> - --create-namespace - --set lecoffreFront.image.repository='rg.fr-par.scw.cloud/lecoffre/front' - --set lecoffreFront.image.tag=${CIRCLE_SHA1:0:7} - -workflows: - version: 2 - build-and-register-stg: - jobs: - - build-push-docker-image: - NEXT_PUBLIC_BACK_API_HOST: api.stg.lecoffre.smart-chain.fr - NEXT_PUBLIC_BACK_API_PROTOCOL: https:// - NEXT_PUBLIC_BACK_API_ROOT_URL: /api - NEXT_PUBLIC_BACK_API_VERSION: /v1 - NEXT_PUBLIC_FC_AUTHORIZE_ENDPOINT: https://fcp.integ01.dev-franceconnect.fr/api/v1/authorize - NEXT_PUBLIC_FC_CLIENT_ID: 211286433e39cce01db448d80181bdfd005554b19cd51b3fe7943f6b3b86ab6e - NEXT_PUBLIC_FRONT_APP_HOST: https://app.stg.lecoffre.smart-chain.fr - NEXT_PUBLIC_FRONT_APP_PORT: "3000" - NEXT_PUBLIC_IDNOT_BASE_URL: "https://qual-connexion.idnot.fr" - NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT: "/IdPOAuth2/authorize/idnot_idp_v1" - NEXT_PUBLIC_IDNOT_CLIENT_ID: "4501646203F3EF67" - NEXT_PUBLIC_DOCAPOST_API_URL: "https://preprod.id360docaposte.com/api/1.0.0" - NEXT_PUBLIC_DOCAPOST_DOCUMENT_PROCESS_ID: 49508376-b160-475d-9224-9bb6511215b8 - NEXT_PUBLIC_DOCAPOST_CONNECT_PROCESS_ID: 54c14875-f864-4819-8cd4-4fc6dd4a947b - NEXT_PUBLIC_DOCAPOST_APP_ID: leCoffre@smart_chain - context: - - sc-shared-prd - 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: - NEXT_PUBLIC_BACK_API_HOST: api.ppd.lecoffre.smart-chain.fr - NEXT_PUBLIC_BACK_API_PROTOCOL: https:// - NEXT_PUBLIC_BACK_API_ROOT_URL: /api - NEXT_PUBLIC_BACK_API_VERSION: /v1 - NEXT_PUBLIC_FC_AUTHORIZE_ENDPOINT: https://fcp.integ01.dev-franceconnect.fr/api/v1/authorize - NEXT_PUBLIC_FC_CLIENT_ID: 211286433e39cce01db448d80181bdfd005554b19cd51b3fe7943f6b3b86ab6e - NEXT_PUBLIC_FRONT_APP_HOST: https://app.ppd.lecoffre.smart-chain.fr - NEXT_PUBLIC_FRONT_APP_PORT: "3000" - NEXT_PUBLIC_IDNOT_BASE_URL: "https://qual-connexion.idnot.fr" - NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT: "/IdPOAuth2/authorize/idnot_idp_v1" - NEXT_PUBLIC_IDNOT_CLIENT_ID: "4501646203F3EF67" - NEXT_PUBLIC_DOCAPOST_API_URL: "https://preprod.id360docaposte.com/api/1.0.0" - NEXT_PUBLIC_DOCAPOST_DOCUMENT_PROCESS_ID: 49508376-b160-475d-9224-9bb6511215b8 - NEXT_PUBLIC_DOCAPOST_CONNECT_PROCESS_ID: 54c14875-f864-4819-8cd4-4fc6dd4a947b - NEXT_PUBLIC_DOCAPOST_APP_ID: leCoffre@smart_chain - context: - - sc-shared-prd - 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: - NEXT_PUBLIC_BACK_API_HOST: api.lecoffre.smart-chain.fr - NEXT_PUBLIC_BACK_API_PROTOCOL: https:// - NEXT_PUBLIC_BACK_API_ROOT_URL: /api - NEXT_PUBLIC_BACK_API_VERSION: /v1 - NEXT_PUBLIC_FC_AUTHORIZE_ENDPOINT: https://fcp.integ01.dev-franceconnect.fr/api/v1/authorize - NEXT_PUBLIC_FC_CLIENT_ID: 211286433e39cce01db448d80181bdfd005554b19cd51b3fe7943f6b3b86ab6e - NEXT_PUBLIC_FRONT_APP_HOST: https://app.lecoffre.smart-chain.fr - NEXT_PUBLIC_FRONT_APP_PORT: "3000" - NEXT_PUBLIC_IDNOT_BASE_URL: "https://qual-connexion.idnot.fr" - NEXT_PUBLIC_IDNOT_AUTHORIZE_ENDPOINT: "/IdPOAuth2/authorize/idnot_idp_v1" - NEXT_PUBLIC_IDNOT_CLIENT_ID: "4501646203F3EF67" - NEXT_PUBLIC_DOCAPOST_API_URL: "https://preprod.id360docaposte.com/api/1.0.0" - NEXT_PUBLIC_DOCAPOST_DOCUMENT_PROCESS_ID: 49508376-b160-475d-9224-9bb6511215b8 - NEXT_PUBLIC_DOCAPOST_CONNECT_PROCESS_ID: 54c14875-f864-4819-8cd4-4fc6dd4a947b - NEXT_PUBLIC_DOCAPOST_APP_ID: leCoffre@smart_chain - context: - - sc-shared-prd - filters: - branches: - only: main - - deploy-docker-image: - env: prd - requires: - - build-push-docker-image - context: - - sc-shared-prd - filters: - branches: - only: main From 89a6dea519055527dc4a174e4595953369c45566 Mon Sep 17 00:00:00 2001 From: Yanis JEDRZEJCZAK Date: Tue, 7 May 2024 14:29:16 +0200 Subject: [PATCH 7/7] removing kube ci configs --- devops/.helmignore | 23 -------- devops/Chart.yaml | 25 -------- devops/ppd.values.yaml | 33 ----------- devops/prd.values.yaml | 33 ----------- devops/stg.values.yaml | 34 ----------- devops/templates/docker-pull-secret.yaml | 1 - devops/templates/lecoffre-front.yaml | 74 ------------------------ devops/templates/sealed-secret.yaml | 1 - devops/templates/secret-store.yaml | 1 - devops/templates/secrets.yaml | 1 - devops/templates/service-account.yaml | 14 ----- devops/values.yaml | 35 ----------- 12 files changed, 275 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-front.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 208511fb..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.6 - diff --git a/devops/ppd.values.yaml b/devops/ppd.values.yaml deleted file mode 100644 index 4db3e934..00000000 --- a/devops/ppd.values.yaml +++ /dev/null @@ -1,33 +0,0 @@ -dockerPullSecret: docker-pull-secret - -scwSecretKey: AgChoEnPitXp4Ny/rVMEcevaWKNVpyj2cJYAcq+yFqKwVwnLB+ffDvwqz9XBHu+6d4Nyyjkf37zUAMoaM21lEDWA7x3zfG2/D/j+rvX1qxzZgLD0mjBk7fGElVm332I6JA83oInes8AMMYEDPLElzHnpKRb9KtkIP4NzgOcCeW0ijft3N7Vroez6LEHsBPCA1I9XjKSkGEDvrO0MhWX3iJOlfz+SPMfJAV7rPawOs0ZmohTHrPW8qIvGDn8HCzKyU8zRBoMt+Ogpf5pH4U3JryEFuqD61KAQgablAM8edPIvsgNno9HAEuC2QtRLYA9aUhuKdaKuS58c9P2E80PHWXIlbpFCg6EugQTgNfnYp+3qDUNz8edeCfapYLvF4s9eCMGyMsGnpDR8EDNOyuGy7Y3l7okX8Xqu464gMp9E+hX7bHkcD6a4xfyIgJcWxsku0tm1TH1dpn4M1UXRuyZZif8P08nuE6MTUL67sAR9J1lpn4lVEL4kflk0pP2tZ5ncgPQFafJrRz05krMb0eU5tb2H4gs7ao/LL6idWo8MM9K1yr8lIuT5x2WW5CX+RjA+i50ex114V6vX3PNP5oVyt+DynTUB9QmXzVm3oLfDc3Cae1uqh7X0CFd+xiztJBtg0VtJaD/xUJcuWfY4cV2lERo9fRrykltzlJqiXHO4nowt8OtN0BcViVV8NJhPhYFzyb4ympxpOlTjm3GETuT2TYhUqdgS9nzleEAbOmOHZdIO2COunPE= - -lecoffreFront: - serviceAccountName: lecoffre-front-sa - envSecrets: ppd-env - command: "'sh', '-c', 'export $(xargs