1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-06 22:32:51 +02:00

added entry point for schema migration to devops that loads db creds

from aws secrets manager
This commit is contained in:
Lee Brown
2019-07-14 15:33:23 -08:00
parent 1a36b52113
commit e1b3377e88
7 changed files with 292 additions and 67 deletions

View File

@ -50,28 +50,35 @@ db:migrate:dev:
- master
- dev
- /^dev-.*$/
variables:
TARGET_ENV: 'dev'
AWS_USE_ROLE: 'true'
webapi:build:dev:
<<: *build_tmpl
stage: build:dev
tags:
- dev
variables:
TARGET_ENV: 'dev'
SERVICE: 'web-api'
AWS_USE_ROLE: 'true'
only:
- master
- dev
- dev-web-api
variables:
TARGET_ENV: 'dev'
SERVICE: 'web-api'
AWS_USE_ROLE: 'true'
webapi:deploy:dev:
<<: *deploy_tmpl
stage: deploy:dev
tags:
- dev
only:
- master
- dev
- dev-web-api
dependencies:
- 'webapi:build:dev'
# - 'db:migrate:dev'
variables:
TARGET_ENV: 'dev'
SERVICE: 'web-api'
@ -82,13 +89,8 @@ webapi:deploy:dev:
S3_BUCKET_PRIVATE: 'saas-starter-kit-private'
S3_BUCKET_PUBLIC: 'saas-starter-kit-public'
AWS_USE_ROLE: 'true'
dependencies:
- 'webapi:build:dev'
# - 'db:migrate:dev'
only:
- master
- dev
- dev-web-api
#ddlogscollector:deploy:stage: