Skip to content

Commit

Permalink
feat: ci on kontinuous
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed May 23, 2023
1 parent 066ce15 commit a0f7bb7
Show file tree
Hide file tree
Showing 16 changed files with 112 additions and 152 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/deactivate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ♻️ Deactivate
on:
pull_request:
types: [closed]
delete:
branches:
- "**"
- "!v*"
- "!master"
- "!main"
- "!dev"
- "!develop"
- "!**/persist"
- "!persist/**"
- "!**/persist/**"
- "!persist-**"
- "!**-persist"
- "!**-persist-**"

jobs:
socialgouv:
uses: socialgouv/workflows/.github/workflows/use-ks-gh-deactivate.yaml@v1
secrets: inherit
15 changes: 0 additions & 15 deletions .github/workflows/deactivate.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/preproduction.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 😎 PreProd
on:
workflow_dispatch:
push:
branches:
- "master"
- "main"

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
socialgouv:
name: "🇫🇷 SocialGouv"
uses: socialgouv/workflows/.github/workflows/use-ks-gh-preproduction.yaml@v1
secrets: inherit
43 changes: 0 additions & 43 deletions .github/workflows/preproduction.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 🚀 Production
on:
workflow_dispatch:
push:
tags:
- v*

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
socialgouv:
name: "🇫🇷 SocialGouv"
uses: socialgouv/workflows/.github/workflows/use-ks-gh-production.yaml@v1
secrets: inherit
42 changes: 0 additions & 42 deletions .github/workflows/production.yml

This file was deleted.

14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: Release

on:
workflow_dispatch:
push:
branches: [master, alpha, beta, next]

branches: [master, main, alpha, beta, next]
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: SocialGouv/actions/autodevops-release@v1
with:
author-name: ${{ secrets.SOCIALGROOVYBOT_NAME }}
author-email: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
github-token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
- uses: socialgouv/workflows/actions/semantic-release@v1
with:
github-token: ${{ secrets.SOCIALGROOVYBOT_BOTO_PAT }}
author-name: ${{ secrets.SOCIALGROOVYBOT_NAME }}
author-email: ${{ secrets.SOCIALGROOVYBOT_EMAIL }}
16 changes: 16 additions & 0 deletions .github/workflows/review-auto.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 👓 Review Auto
on:
push:
branches:
- "feat/**"
- "fix/**"

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
socialgouv:
name: "🇫🇷 SocialGouv"
uses: socialgouv/workflows/.github/workflows/use-ks-gh-review-auto.yaml@v1
secrets: inherit
19 changes: 19 additions & 0 deletions .github/workflows/review.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 👀 Review
on:
push:
branches:
- "**"
- "!master"
- "!main"
- "!feat/**"
- "!fix/**"

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
socialgouv:
name: "🇫🇷 SocialGouv"
uses: socialgouv/workflows/.github/workflows/use-ks-gh-review.yaml@v1
secrets: inherit
41 changes: 0 additions & 41 deletions .github/workflows/review.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .kontinuous/env/dev/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jobs:
runs:
build-app:
NEXT_PUBLIC_INSTAGRAM_TOKEN: instagram_token_dev
NEXT_PUBLIC_API_URL: https://backoffice-1000jours-preprod.dev.fabrique.social.gouv.fr
4 changes: 4 additions & 0 deletions .kontinuous/env/preprod/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
jobs:
runs:
build-app:
NEXT_PUBLIC_API_URL: https://backoffice-1000jours-preprod.dev.fabrique.social.gouv.fr
5 changes: 5 additions & 0 deletions .kontinuous/env/prod/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jobs:
runs:
build-app:
NEXT_PUBLIC_INSTAGRAM_TOKEN: instagram_token_prod
NEXT_PUBLIC_API_URL: https://backoffice-les1000jours.fabrique.social.gouv.fr
2 changes: 1 addition & 1 deletion .kube-workflow/values.yaml → .kontinuous/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
app:
enabled: True
containerPort: 3000
probesPath: /healthz
2 changes: 0 additions & 2 deletions .kube-workflow/prod/values.yaml

This file was deleted.

Empty file added .socialgouv.yaml
Empty file.

0 comments on commit a0f7bb7

Please sign in to comment.