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

Commit f67cbc6

Browse files
fix: Add preproduction workflow
1 parent a8beedb commit f67cbc6

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.github/workflows/preproduction.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Review
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
concurrency:
8+
group: preproduction
9+
cancel-in-progress: true
10+
11+
jobs:
12+
13+
deploy:
14+
name: Deploy production
15+
runs-on: ubuntu-latest
16+
steps:
17+
18+
- name: Get project name
19+
run: |
20+
echo "project=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
21+
22+
- name: Use autodevops to deploy review branch
23+
uses: SocialGouv/actions/autodevops@v1
24+
with:
25+
environment: preprod
26+
project: ${{ env.project }}
27+
token: ${{ secrets.GITHUB_TOKEN }}
28+
kubeconfig: ${{ secrets.KUBECONFIG }}
29+
imageName: fabrique/${{ env.project }}
30+
rancherId: ${{ secrets.RANCHER_PROJECT_ID }}
31+
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }}

.github/workflows/review.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Review
22

33
on:
44
push:
5-
branches:
6-
- '**'
5+
branches-ignore:
6+
- master
77
tags-ignore:
88
- v*
99

0 commit comments

Comments
 (0)