Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
feat(kube-workflow): upgrade (#604)
Browse files Browse the repository at this point in the history
* feat(kube-workflow): upgrade

* feat(kube-workflow): upgrade
  • Loading branch information
devthejo authored Mar 15, 2022
1 parent af1cb4d commit 1382765
Show file tree
Hide file tree
Showing 20 changed files with 14 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Application
uses: SocialGouv/actions/autodevops-build-register@v1
with:
imageName: sample-next-app/app
imagePackage: app
token: ${{ secrets.GITHUB_TOKEN }}

build-hasura:
Expand All @@ -33,18 +33,18 @@ jobs:
dockercontext: ./hasura
dockerfile: ./hasura/Dockerfile
token: ${{ secrets.GITHUB_TOKEN }}
imageName: sample-next-app/hasura
imagePackage: hasura

deploy:
name: Deploy application
runs-on: ubuntu-latest
needs: [build-app,build-hasura]
steps:
- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-helm-deploy@v1
uses: SocialGouv/kube-workflow@master
with:
environment: "dev"
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectName: ${{ secrets.RANCHER_PROJECT_Name }}
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
components:
app: true
hasura: true
pgweb: true

app:
enabled: true
imagePackage: app
probesPath: /healthz
certSecretName: app-crt
Expand All @@ -16,6 +12,7 @@ app:
name: app-configmap

hasura:
enabled: true
# waitForPostgres: true
envFrom:
- secretRef:
Expand All @@ -26,4 +23,5 @@ hasura:
name: hasura-configmap

pgweb:
enabled: true
certSecretName: pgweb-crt
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
components:
jobs: true

hasura:
needs: [db]

pgweb:
needs: [db]

jobs:
enabled: true
runs:
- name: db
use: SocialGouv/actions/uses/create-db@v1
use: SocialGouv/kube-workflow/jobs/create-db@master
with:
pgAdminSecretRefName: pg-scaleway
1 change: 1 addition & 0 deletions .kube-workflow/env/preprod/templates/app.configmap.yaml
1 change: 1 addition & 0 deletions .kube-workflow/env/preprod/templates/hasura.configmap.yaml
1 change: 0 additions & 1 deletion .socialgouv/environments/preprod/app.configmap.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .socialgouv/environments/preprod/app.sealed-secret.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .socialgouv/environments/preprod/hasura.configmap.yaml

This file was deleted.

1 change: 0 additions & 1 deletion .socialgouv/environments/preprod/hasura.sealed-secret.yaml

This file was deleted.

0 comments on commit 1382765

Please sign in to comment.