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

Commit

Permalink
workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon committed Apr 7, 2022
1 parent 6084e5e commit edb887f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 41 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/preproduction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,10 @@ jobs:
name: preproduction
url: https://mon-psy-sante-preprod.dev.fabrique.social.gouv.fr
steps:
- name: Use k8s manifests generation
uses: SocialGouv/actions/autodevops-manifests@v1
- uses: SocialGouv/kube-workflow@master
with:
environment: "preprod"
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}
pgUserSecretPrefix: pg-user

- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-deploy@v1
with:
environment: "preprod"
environment: preprod
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectName: ${{ secrets.RANCHER_PROJECT_NAME }}
18 changes: 4 additions & 14 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,10 @@ jobs:
name: production
url: https://monpsy.sante.gouv.fr
steps:
- name: Use k8s manifests generation
uses: SocialGouv/actions/autodevops-manifests@v1
- uses: SocialGouv/kube-workflow@master
with:
environment: "prod"
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: sante.gouv.fr
pgUserSecretPrefix: pg-user
env:
SOCIALGOUV_PRODUCTION_NAMESPACE: monpsy

- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-deploy@v1
with:
environment: "prod"
environment: prod
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectName: ${{ secrets.RANCHER_PROJECT_NAME }}
19 changes: 4 additions & 15 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ concurrency:
group: ${{ github.ref }}

jobs:
##############################################################################
## CREATE POSTGRES DATABASE
##############################################################################
create-db:
name: Create postgres database
runs-on: ubuntu-latest
steps:
- uses: SocialGouv/actions/autodevops-create-db@v1
with:
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}

##############################################################################
## BUILD AND REGISTER DOCKER IMAGES
Expand Down Expand Up @@ -64,10 +53,10 @@ jobs:
runs-on: ubuntu-latest
needs: [register, manifests]
steps:
- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-deploy@v1
- uses: SocialGouv/kube-workflow@master
with:
environment: "dev"
environment: dev
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }}
rancherProjectName: ${{ secrets.RANCHER_PROJECT_NAME }}

0 comments on commit edb887f

Please sign in to comment.