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

Commit

Permalink
fix: Add preproduction workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gary-van-woerkens committed Jan 28, 2022
1 parent a8beedb commit f67cbc6
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/preproduction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Review

on:
push:
branches: [master]

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

jobs:

deploy:
name: Deploy production
runs-on: ubuntu-latest
steps:

- name: Get project name
run: |
echo "project=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
- name: Use autodevops to deploy review branch
uses: SocialGouv/actions/autodevops@v1
with:
environment: preprod
project: ${{ env.project }}
token: ${{ secrets.GITHUB_TOKEN }}
kubeconfig: ${{ secrets.KUBECONFIG }}
imageName: fabrique/${{ env.project }}
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}
4 changes: 2 additions & 2 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Review

on:
push:
branches:
- '**'
branches-ignore:
- master
tags-ignore:
- v*

Expand Down

0 comments on commit f67cbc6

Please sign in to comment.