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

Commit

Permalink
fix: group manifests+deploy for production
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Bouquillon authored Sep 23, 2021
1 parent f9114c8 commit b817212
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,32 +71,22 @@ jobs:
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}

##############################################################################
## GENERATE PRODUCTION MANIFESTS
## DEPLOY PRODUCTION APPLICATION
##############################################################################
manifests-prod:
name: Production manifests
deploy-prod:
name: Deploy production
runs-on: ubuntu-latest
needs: [deploy-preprod]
environment:
name: production
url: https://sample-next-app.fabrique.social.gouv.fr
steps:
- name: Use k8s manifests generation
uses: SocialGouv/actions/k8s-manifests@RANCHER_PROJECT_ID
with:
environment: "prod"
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}

##############################################################################
## DEPLOY PRODUCTION APPLICATION
##############################################################################
deploy-prod:
name: Deploy production
runs-on: ubuntu-latest
needs: [deploy-preprod, manifests-prod]
environment:
name: production
url: https://sample-next-app.fabrique.social.gouv.fr
steps:
- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-deploy@RANCHER_PROJECT_ID
with:
Expand Down

0 comments on commit b817212

Please sign in to comment.