Skip to content

Commit

Permalink
fix: Remove preprod specific workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens committed Sep 20, 2021
1 parent 9b53a1c commit bfc2531
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 68 deletions.
64 changes: 0 additions & 64 deletions .github/workflows/preproduction.yml

This file was deleted.

40 changes: 36 additions & 4 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,41 @@ jobs:
NEXT_PUBLIC_API_URL=https://backoffice-preprod-les1000jours.dev.fabrique.social.gouv.fr
##############################################################################
## GENERATE PRODUCTION MANIFESTS
## GENERATE PREPRODUCTION MANIFESTS
##############################################################################
manifests:
name: Preproduction manifests
runs-on: ubuntu-latest
steps:

- name: Use autodevops manifests generation
uses: SocialGouv/actions/autodevops-manifests@master
with:
environment: "preprod"

##############################################################################
## DEPLOY PREPRODUCTION APPLICATION
##############################################################################
deploy-preprod:
name: Deploy application
runs-on: ubuntu-latest
needs: [register, manifests]
environment:
name: preproduction
url: https://${{ env.namespace }}.${{ env.SOCIALGOUV_BASE_DOMAIN }}
steps:

- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-deploy@master
with:
environment: "preprod"
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}

##############################################################################
## GENERATE PRODUCTION MANIFESTS
##############################################################################
manifests-prod:
name: Production manifests
runs-on: ubuntu-latest
steps:
Expand All @@ -47,10 +79,10 @@ jobs:
##############################################################################
## DEPLOY PRODUCTION APPLICATION
##############################################################################
deploy:
name: Deploy production
deploy-prod:
name: Deploy application
runs-on: ubuntu-latest
needs: [register, manifests]
needs: [deploy-preprod, manifests-prod]
environment:
name: production
url: https://${{ env.namespace }}.${{ env.SOCIALGOUV_BASE_DOMAIN }}
Expand Down

0 comments on commit bfc2531

Please sign in to comment.