Skip to content

Commit

Permalink
Feat/ovh (#15)
Browse files Browse the repository at this point in the history
* fix: deploy on ovh

* fix: use ci-sandbox

* fix: use ovh only on dev/preprod

* chore: trigger

* fix: use ifEnv for extends ovh

* chore: fixes
  • Loading branch information
achauve committed Jul 13, 2023
1 parent a6900a4 commit 3cc9004
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 39 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/deactivate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,22 @@ name: ♻️ Deactivate
on:
pull_request:
types: [closed]

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}
delete:
branches:
- "**"
- "!v*"
- "!master"
- "!main"
- "!dev"
- "!develop"
- "!**/persist"
- "!persist/**"
- "!**/persist/**"
- "!persist-**"
- "!**-persist"
- "!**-persist-**"

jobs:
kontinuous:
uses: socialgouv/workflows/.github/workflows/use-ks-wh-deactivate.yaml@v1
socialgouv:
uses: socialgouv/workflows/.github/workflows/use-ks-gh-deactivate.yaml@v1
secrets: inherit
6 changes: 3 additions & 3 deletions .github/workflows/preproduction.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
kontinuous:
name: "Deploy on Kubernetes 🐳"
uses: socialgouv/workflows/.github/workflows/use-ks-wh-preproduction.yaml@v1
socialgouv:
name: "🇫🇷 SocialGouv"
uses: socialgouv/workflows/.github/workflows/use-ks-gh-preproduction.yaml@v1
secrets: inherit
6 changes: 3 additions & 3 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
kontinuous:
name: "Deploy on Kubernetes 🐳"
uses: socialgouv/workflows/.github/workflows/use-ks-wh-production.yaml@v1
socialgouv:
name: "🇫🇷 SocialGouv"
uses: socialgouv/workflows/.github/workflows/use-ks-gh-production.yaml@v1
secrets: inherit
24 changes: 6 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,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:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 17
extra_plugins: |
@semantic-release/changelog@5.0.1
@semantic-release/git@9.0.0
extends: |
@socialgouv/releaserc
env:
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 }}
5 changes: 3 additions & 2 deletions .github/workflows/review-auto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
kontinuous:
uses: socialgouv/workflows/.github/workflows/use-ks-wh-review-auto.yaml@v1
socialgouv:
name: "🇫🇷 SocialGouv"
uses: socialgouv/workflows/.github/workflows/use-ks-gh-review-auto.yaml@v1
secrets: inherit
7 changes: 4 additions & 3 deletions .github/workflows/review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.ref }}

jobs:
kontinuous:
uses: socialgouv/workflows/.github/workflows/use-ks-wh-review.yaml@v1
secrets: inherit
socialgouv:
name: "🇫🇷 SocialGouv"
uses: socialgouv/workflows/.github/workflows/use-ks-gh-review.yaml@v1
secrets: inherit
12 changes: 8 additions & 4 deletions .kontinuous/config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
projectName: sandbox
ciNamespace: ci-sandbox

kubeconfigContext:
dev: ovh-dev
preprod: ovh-dev
prod: azure
dependencies:
fabrique:
import: SocialGouv/kontinuous/plugins/fabrique
options:
registry: harbor.fabrique.social.gouv.fr

extends:
- name: ovh
ifEnv: [dev,preprod]
Empty file added .socialgouv.yaml
Empty file.

0 comments on commit 3cc9004

Please sign in to comment.