removing staging
This commit is contained in:
23
.env.stg
23
.env.stg
@@ -1,23 +0,0 @@
|
|||||||
REACT_APP_AUTH_CALLBACK_URL=https://stg-ota-admin.cloud.fiskerinc.com
|
|
||||||
REACT_APP_AUTH_SERVICE_URL=https://stg-gw.cloud.fiskerinc.com/compute_auth
|
|
||||||
REACT_APP_CERT_SERVICE_URL=https://stg-gw.cloud.fiskerinc.com/certificate
|
|
||||||
REACT_APP_ENV=stg
|
|
||||||
REACT_APP_MAGNA_PROVIDER=Magna
|
|
||||||
REACT_APP_MAGNA_GROUP_ID=68273225-9da4-4fa7-aea5-38e16ec471fe
|
|
||||||
REACT_APP_OTA_SERVICE_URL=https://stg-gw.cloud.fiskerinc.com/ota_update
|
|
||||||
REACT_APP_SECURITY_DLL_URL=https://assets.fiskerdps.com/cloud-supplier/fisker_security_32.dll
|
|
||||||
REACT_APP_SECURITY_DLL_64_URL=https://assets.fiskerdps.com/cloud-supplier/fisker_security_64.dll
|
|
||||||
REACT_APP_SUPERSET_URL=https://stg-superset.cloud.fiskerinc.com
|
|
||||||
REACT_APP_ROLE_CREATE=efcc3025-e2d8-4212-8227-805c7be39d2c
|
|
||||||
REACT_APP_ROLE_READ_ONLY=a729bbd4-2038-4649-9127-16782bb1e701
|
|
||||||
REACT_APP_ROLE_DELETE=8f78dce7-f5f9-4033-a10c-c9c7408bfcfe
|
|
||||||
REACT_APP_ROLE_GENERATE_CERTIFICATE=746f34b0-9ba0-4b5d-8d84-0256a9c8e390
|
|
||||||
REACT_APP_ROLE_MANUFACTURE=3412e11a-a2d1-4355-be3e-ef9aa5065b69
|
|
||||||
REACT_APP_ROLE_SUPPLIER_APPROVER=a6c9805e-80b2-42b2-bfbb-9df52e5504d8
|
|
||||||
REACT_APP_ROLE_MANIFEST_MIGRATION=42798c8a-9fa7-4fb4-82c0-9582cabe364f
|
|
||||||
REACT_APP_ROLE_CAR_DIAGNOSTIC=2914e67f-fb85-4b78-b79d-656f4f37faa1
|
|
||||||
REACT_APP_ROLE_UPDATE_DEPLOY=3590ec3f-1c05-428b-81a4-40b00baf83de
|
|
||||||
REACT_APP_ECCKEY_ENV=prod
|
|
||||||
REACT_APP_HOME_MAP_DEFAULT_LOCATION={"lat":37.0902,"lng":-95.7129,"zoom":4.5}
|
|
||||||
REACT_APP_ENABLE_DEBUGMASK=1
|
|
||||||
REACT_APP_SHOW_AFTERSALES_EU_CERT_BUTTON=0
|
|
||||||
10
.github/workflows/deploy-on-demand-v2.yml
vendored
10
.github/workflows/deploy-on-demand-v2.yml
vendored
@@ -46,7 +46,7 @@ jobs:
|
|||||||
password: ${{ secrets.AZURE_CLIENT_SECRET }}
|
password: ${{ secrets.AZURE_CLIENT_SECRET }}
|
||||||
|
|
||||||
- name: JFrog Auth
|
- name: JFrog Auth
|
||||||
run: echo ${JFROG_NPMRC} | base64 -d > .npmrc
|
run: echo ${JFROG_NPMRC} | base64 -d > .npmrc
|
||||||
|
|
||||||
- name: Set Env
|
- name: Set Env
|
||||||
env:
|
env:
|
||||||
@@ -56,8 +56,6 @@ jobs:
|
|||||||
case ${ENV} in
|
case ${ENV} in
|
||||||
dev)
|
dev)
|
||||||
ENVIRONMENT=dev;;
|
ENVIRONMENT=dev;;
|
||||||
stage)
|
|
||||||
ENVIRONMENT=stg;;
|
|
||||||
preprod)
|
preprod)
|
||||||
ENVIRONMENT=prd;;
|
ENVIRONMENT=prd;;
|
||||||
*)
|
*)
|
||||||
@@ -78,14 +76,14 @@ jobs:
|
|||||||
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}
|
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Notify if failure
|
- name: Notify if failure
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
env:
|
env:
|
||||||
SLACK_COLOR: ${{ job.status }}
|
SLACK_COLOR: ${{ job.status }}
|
||||||
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} ${{ inputs.environment }}! :this-is-fine:"
|
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} ${{ inputs.environment }}! :this-is-fine:"
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: build
|
needs: build
|
||||||
runs-on: [self-hosted, azure]
|
runs-on: [self-hosted, azure]
|
||||||
@@ -115,7 +113,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SLACK_COLOR: ${{ job.status }}
|
SLACK_COLOR: ${{ job.status }}
|
||||||
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on ${{ inputs.environment }}! :this-is-fine:"
|
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on ${{ inputs.environment }}! :this-is-fine:"
|
||||||
|
|
||||||
- name: Notify deploy success
|
- name: Notify deploy success
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
env:
|
env:
|
||||||
|
|||||||
3
.github/workflows/deploy-on-demand.yml
vendored
3
.github/workflows/deploy-on-demand.yml
vendored
@@ -9,7 +9,6 @@ on:
|
|||||||
type: choice
|
type: choice
|
||||||
options:
|
options:
|
||||||
- dev
|
- dev
|
||||||
- stage
|
|
||||||
- preprod
|
- preprod
|
||||||
|
|
||||||
env:
|
env:
|
||||||
@@ -54,8 +53,6 @@ jobs:
|
|||||||
case ${ENV} in
|
case ${ENV} in
|
||||||
dev)
|
dev)
|
||||||
ENVIRONMENT=dev;;
|
ENVIRONMENT=dev;;
|
||||||
stage)
|
|
||||||
ENVIRONMENT=stg;;
|
|
||||||
preprod)
|
preprod)
|
||||||
ENVIRONMENT=prd;;
|
ENVIRONMENT=prd;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
111
.github/workflows/deploy.yml
vendored
111
.github/workflows/deploy.yml
vendored
@@ -18,7 +18,7 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
build-dev:
|
build-dev:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Slack Notification
|
- name: Slack Notification
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
@@ -50,14 +50,14 @@ jobs:
|
|||||||
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}-dev
|
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}-dev
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Notify if failure
|
- name: Notify if failure
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
env:
|
env:
|
||||||
SLACK_COLOR: ${{ job.status }}
|
SLACK_COLOR: ${{ job.status }}
|
||||||
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} dev! :this-is-fine:"
|
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} dev! :this-is-fine:"
|
||||||
|
|
||||||
deploy-dev:
|
deploy-dev:
|
||||||
needs: [build-dev]
|
needs: [build-dev]
|
||||||
runs-on: [self-hosted, azure]
|
runs-on: [self-hosted, azure]
|
||||||
@@ -86,91 +86,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SLACK_COLOR: ${{ job.status }}
|
SLACK_COLOR: ${{ job.status }}
|
||||||
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on dev! :this-is-fine:"
|
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on dev! :this-is-fine:"
|
||||||
|
|
||||||
- name: Notify deploy success
|
- name: Notify deploy success
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
env:
|
env:
|
||||||
MSG_MINIMAL: true
|
MSG_MINIMAL: true
|
||||||
SLACK_MESSAGE: "Successfully deployed ${{ env.PROJECT }} to dev! :gopher_party:"
|
SLACK_MESSAGE: "Successfully deployed ${{ env.PROJECT }} to dev! :gopher_party:"
|
||||||
|
|
||||||
build-stg:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [deploy-dev]
|
|
||||||
steps:
|
|
||||||
- name: Slack Notification
|
|
||||||
uses: rtCamp/action-slack-notify@v2
|
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Azure Login
|
|
||||||
uses: azure/login@v1
|
|
||||||
with:
|
|
||||||
creds: ${{ secrets.AZURE_CREDENTIALS }}
|
|
||||||
|
|
||||||
- name: Login to ACR
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: ${{ env.REGISTRY }}
|
|
||||||
username: ${{ secrets.AZURE_CLIENT_ID }}
|
|
||||||
password: ${{ secrets.AZURE_CLIENT_SECRET }}
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Build and push STG
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
build-args: ENVIRONMENT=stg
|
|
||||||
push: true
|
|
||||||
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}-stg
|
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
|
|
||||||
- name: Notify if failure
|
|
||||||
if: ${{ failure() }}
|
|
||||||
uses: rtCamp/action-slack-notify@v2
|
|
||||||
env:
|
|
||||||
SLACK_COLOR: ${{ job.status }}
|
|
||||||
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} stg! :this-is-fine:"
|
|
||||||
|
|
||||||
|
|
||||||
deploy-stg:
|
|
||||||
needs: [deploy-dev, build-stg]
|
|
||||||
runs-on: [self-hosted, azure]
|
|
||||||
environment: stg
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: rtCamp/action-slack-notify@v2
|
|
||||||
env:
|
|
||||||
MSG_MINIMAL: true
|
|
||||||
SLACK_MESSAGE: "Deploying ${{ env.PROJECT }} to stg... :partydeploy:"
|
|
||||||
|
|
||||||
- name: Deploy to stg
|
|
||||||
run: |-
|
|
||||||
helm upgrade \
|
|
||||||
--kube-context stg \
|
|
||||||
--set image.registry=$REGISTRY \
|
|
||||||
--set image.name=$PROJECT \
|
|
||||||
--set image.tag=$TAG-stg \
|
|
||||||
--wait -i -f k8s/values-stg.yaml $PROJECT k8s/
|
|
||||||
|
|
||||||
- name: Notify deploy failure
|
|
||||||
if: ${{ failure() }}
|
|
||||||
uses: rtCamp/action-slack-notify@v2
|
|
||||||
env:
|
|
||||||
SLACK_COLOR: ${{ job.status }}
|
|
||||||
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on stg! :this-is-fine:"
|
|
||||||
|
|
||||||
- name: Notify deploy success
|
|
||||||
uses: rtCamp/action-slack-notify@v2
|
|
||||||
env:
|
|
||||||
MSG_MINIMAL: true
|
|
||||||
SLACK_MESSAGE: "Successfully deployed ${{ env.PROJECT }} to stg! :gopher_party:"
|
|
||||||
|
|
||||||
build-preprod:
|
build-preprod:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [deploy-dev]
|
needs: [deploy-dev]
|
||||||
@@ -212,7 +134,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SLACK_COLOR: ${{ job.status }}
|
SLACK_COLOR: ${{ job.status }}
|
||||||
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} preprod! :this-is-fine:"
|
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} preprod! :this-is-fine:"
|
||||||
|
|
||||||
deploy-preprod:
|
deploy-preprod:
|
||||||
needs: [deploy-dev, build-preprod]
|
needs: [deploy-dev, build-preprod]
|
||||||
runs-on: [self-hosted, azure]
|
runs-on: [self-hosted, azure]
|
||||||
@@ -241,16 +163,16 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SLACK_COLOR: ${{ job.status }}
|
SLACK_COLOR: ${{ job.status }}
|
||||||
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on preprod! :this-is-fine:"
|
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on preprod! :this-is-fine:"
|
||||||
|
|
||||||
- name: Notify deploy success
|
- name: Notify deploy success
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
env:
|
env:
|
||||||
MSG_MINIMAL: true
|
MSG_MINIMAL: true
|
||||||
SLACK_MESSAGE: "Successfully deployed ${{ env.PROJECT }} to preprod! :gopher_party:"
|
SLACK_MESSAGE: "Successfully deployed ${{ env.PROJECT }} to preprod! :gopher_party:"
|
||||||
|
|
||||||
build-cec-prd:
|
build-cec-prd:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [deploy-dev, deploy-stg, deploy-preprod]
|
needs: [deploy-dev, deploy-preprod]
|
||||||
steps:
|
steps:
|
||||||
- name: Slack Notification
|
- name: Slack Notification
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
@@ -282,7 +204,7 @@ jobs:
|
|||||||
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}-cec-prd
|
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}-cec-prd
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Notify if failure
|
- name: Notify if failure
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
@@ -291,7 +213,7 @@ jobs:
|
|||||||
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} cec-prd! :this-is-fine:"
|
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} cec-prd! :this-is-fine:"
|
||||||
|
|
||||||
deploy-cec-prd:
|
deploy-cec-prd:
|
||||||
needs: [deploy-dev, deploy-stg, deploy-preprod, build-cec-prd]
|
needs: [deploy-dev, deploy-preprod, build-cec-prd]
|
||||||
runs-on: [self-hosted, azure]
|
runs-on: [self-hosted, azure]
|
||||||
environment: prd
|
environment: prd
|
||||||
steps:
|
steps:
|
||||||
@@ -318,7 +240,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SLACK_COLOR: ${{ job.status }}
|
SLACK_COLOR: ${{ job.status }}
|
||||||
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on cec-prd! :this-is-fine:"
|
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on cec-prd! :this-is-fine:"
|
||||||
|
|
||||||
- name: Notify deploy success
|
- name: Notify deploy success
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
env:
|
env:
|
||||||
@@ -327,7 +249,7 @@ jobs:
|
|||||||
|
|
||||||
build-cec-euprd:
|
build-cec-euprd:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [deploy-dev, deploy-stg, deploy-preprod]
|
needs: [deploy-dev, deploy-preprod]
|
||||||
steps:
|
steps:
|
||||||
- name: Slack Notification
|
- name: Slack Notification
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
@@ -349,7 +271,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build and push CEC-EUPRD
|
- name: Build and push CEC-EUPRD
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
@@ -359,7 +281,7 @@ jobs:
|
|||||||
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}-cec-euprd
|
tags: ${{ env.REGISTRY }}/${{ env.PROJECT }}:${{ env.TAG }}-cec-euprd
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
|
||||||
- name: Notify if failure
|
- name: Notify if failure
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
@@ -367,9 +289,8 @@ jobs:
|
|||||||
SLACK_COLOR: ${{ job.status }}
|
SLACK_COLOR: ${{ job.status }}
|
||||||
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} cec-euprd! :this-is-fine:"
|
SLACK_MESSAGE: "Failed to build ${{ env.PROJECT }} cec-euprd! :this-is-fine:"
|
||||||
|
|
||||||
|
|
||||||
deploy-cec-euprd:
|
deploy-cec-euprd:
|
||||||
needs: [deploy-dev, deploy-stg, deploy-preprod, build-cec-euprd]
|
needs: [deploy-dev, deploy-preprod, build-cec-euprd]
|
||||||
runs-on: [self-hosted, azure]
|
runs-on: [self-hosted, azure]
|
||||||
environment: prd
|
environment: prd
|
||||||
steps:
|
steps:
|
||||||
@@ -396,7 +317,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
SLACK_COLOR: ${{ job.status }}
|
SLACK_COLOR: ${{ job.status }}
|
||||||
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on cec-euprd! :this-is-fine:"
|
SLACK_MESSAGE: "Failed to deploy ${{ env.PROJECT }} on cec-euprd! :this-is-fine:"
|
||||||
|
|
||||||
- name: Notify deploy success
|
- name: Notify deploy success
|
||||||
uses: rtCamp/action-slack-notify@v2
|
uses: rtCamp/action-slack-notify@v2
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -1,12 +0,0 @@
|
|||||||
ingress:
|
|
||||||
hostname: stg-ota-admin.cloud.fiskerinc.com
|
|
||||||
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
cpu: 100m
|
|
||||||
memory: 128Mi
|
|
||||||
limits:
|
|
||||||
#cpu: 250m
|
|
||||||
memory: 256Mi
|
|
||||||
|
|
||||||
replicas: 1
|
|
||||||
Reference in New Issue
Block a user