Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
SocialGouv
fabrique
carnets
Commits
7c4208d5
Commit
7c4208d5
authored
Aug 16, 2021
by
Gary van Woerkens
Browse files
Add restore-db job.
parent
2938ab10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
.github/workflows/review.yml
.github/workflows/review.yml
+21
-0
No files found.
.github/workflows/review.yml
View file @
7c4208d5
...
...
@@ -196,6 +196,13 @@ jobs:
env
:
SOCIALGOUV_CONFIG_PATH
:
/tmp/autodevops/config.json
SOCIALGOUV_BASE_DOMAIN
:
${{ env.SOCIALGOUV_BASE_DOMAIN }}
-
name
:
Generate k8s manifests
run
:
|
yarn --cwd /tmp/autodevops --silent generate:dev jobs/restore-db > restore-db.yml
env
:
SOCIALGOUV_CONFIG_PATH
:
/tmp/autodevops/config.json
SOCIALGOUV_BASE_DOMAIN
:
${{ env.SOCIALGOUV_BASE_DOMAIN }}
-
name
:
Archive k8s manifests
uses
:
actions/upload-artifact@v2
...
...
@@ -203,6 +210,12 @@ jobs:
name
:
manifests.yml
path
:
manifests.yml
-
name
:
Archive restore DB manifests
uses
:
actions/upload-artifact@v2
with
:
name
:
restore-db.yml
path
:
restore-db.yml
##############################################################################
## DEPLOY APPLICATION OVER KUBERNETES
##############################################################################
...
...
@@ -226,6 +239,11 @@ jobs:
with
:
name
:
manifests.yml
-
name
:
Download restore DB manifests
uses
:
actions/download-artifact@v2
with
:
name
:
restore-db.yml
-
name
:
Notify deployment start
uses
:
bobheadxi/deployments@v0.4.3
id
:
deployment
...
...
@@ -255,6 +273,9 @@ jobs:
-
name
:
Deploy application
run
:
kapp --dangerous-override-ownership-of-existing-resources -y deploy -a ${{ env.project }} --namespace ${{ env.namespace }} -f manifests.yml
-
name
:
Restore database
run
:
kubectl apply --namespace=${{ env.namespace }} -f restore-db.yml
-
name
:
Notify deployment end
uses
:
bobheadxi/deployments@v0.4.3
if
:
always()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment