-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: use kube-workflow * fix * fix: build args * Delete redirect.yml * fix: use redirectFrom * fix
- Loading branch information
Julien Bouquillon
authored
Apr 12, 2022
1 parent
35f3530
commit 92b8324
Showing
11 changed files
with
30 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,46 @@ | ||
name: Preproduction | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
- alpha | ||
tags-ignore: | ||
- v* | ||
|
||
concurrency: | ||
group: preproduction | ||
cancel-in-progress: true | ||
group: preproduction | ||
|
||
jobs: | ||
############################################################################## | ||
## BUILD AND REGISTER DOCKER IMAGE | ||
############################################################################## | ||
register: | ||
name: Build & Register application | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Get project name | ||
run: | | ||
echo "project=${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV | ||
- name: Use autodevops build and register | ||
uses: SocialGouv/actions/autodevops-build-register@v1 | ||
with: | ||
environment: preprod | ||
imagePackage: app | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
imageName: nos1000jours/nos1000jours-blues-epds-pro | ||
dockerbuildargs: | | ||
NEXT_PUBLIC_MATOMO_SITE_ID=47 | ||
NEXT_PUBLIC_MATOMO_ENABLED=false | ||
NEXT_PUBLIC_MATOMO_URL=https://matomo.fabrique.social.gouv.fr/ | ||
NEXT_PUBLIC_API_URL=https://backoffice-1000jours-preprod.dev.fabrique.social.gouv.fr | ||
############################################################################## | ||
## DEPLOY PREPRODUCTION APPLICATION | ||
############################################################################## | ||
deploy: | ||
name: Deploy preproduction | ||
name: Deploy application | ||
runs-on: ubuntu-latest | ||
needs: [register] | ||
environment: | ||
name: preproduction | ||
url: ${{ steps.deploy.outputs.url }} | ||
url: https://nos1000jours-blues-epds-pro-preprod.dev.fabrique.social.gouv.fr | ||
steps: | ||
|
||
- name: Use autodevops deployment | ||
uses: SocialGouv/actions/autodevops-helm-deploy@v1 | ||
id: deploy | ||
- name: Use kube-workflow deployment | ||
uses: SocialGouv/kube-workflow@v1 | ||
with: | ||
environment: "preprod" | ||
environment: preprod | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
kubeconfig: ${{ secrets.KUBECONFIG }} | ||
rancherId: ${{ secrets.RANCHER_PROJECT_ID }} | ||
rancherProjectId: ${{ secrets.RANCHER_PROJECT_ID }} | ||
rancherProjectName: ${{ secrets.RANCHER_PROJECT_NAME }} | ||
socialgouvBaseDomain: ${{ secrets.SOCIALGOUV_BASE_DOMAIN }} | ||
imageName: nos1000jours/nos1000jours-blues-epds-pro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
app: | ||
certSecretName: nos1000jours-blues-epds-pro-crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
app: | ||
probesPath: /healthz | ||
envConfigName: nos1000jours-web-pro-configmap |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.