Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Create production.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
achauve authored Mar 8, 2022
1 parent 3310f59 commit 23fe7bb
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Production

on:
push:
tags:
- v*

concurrency:
cancel-in-progress: true
group: production

jobs:
##############################################################################
## BUILD AND REGISTER NEXT APP
##############################################################################
register-app:
name: Build & Register app
runs-on: ubuntu-latest
steps:
- name: Use autodevops build and register
uses: SocialGouv/actions/autodevops-build-register@v1
with:
imageName: doc-demo-app/app
token: ${{ secrets.GITHUB_TOKEN }}


##############################################################################
## DEPLOY
##############################################################################
deploy:
name: Deploy production
runs-on: ubuntu-latest
needs: [register-app]
environment:
name: production
url: https://doc-demo-app.fabrique.social.gouv.fr/
steps:
- name: Use autodevops deployment
uses: SocialGouv/actions/autodevops-helm-deploy@v1
with:
environment: prod
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}

0 comments on commit 23fe7bb

Please sign in to comment.