1.1.2 • Published 4 years ago
appengine-yaml-generator v1.1.2
Description
Generate your app.yaml inside your pipelne using environement variable. With this package you can securely store app engine environment variables.
Installation
> npm i appengine-yaml-generator
> npm link
> npx appengine-yaml-generator gae-dev-app.yaml
Pipeline example
stages:
- deploy
BuildAppYaml:
stage: .pre
image: node:lts
script:
- npm init -y
- npm i appengine-yaml-generator
- npx appengine-yaml-generator gae-dev-app.yaml
artifacts:
paths:
- app.yaml
DeployOnDevelopment:
image: google/cloud-sdk:alpine
stage: deploy
script:
- echo $DEV_GITLAB_SERVICE_ACCOUNT > /tmp/$CI_PIPELINE_ID.json
- gcloud auth activate-service-account --key-file /tmp/$CI_PIPELINE_ID.json
- gcloud --project $DEV_PROJECT_ID --quiet --log-http --verbosity=debug app deploy gae-dev-app.yaml --stop-previous-version
dependencies:
- BuildAppYaml
after_script:
- rm /tmp/$CI_PIPELINE_ID.json
App.yaml example
runtime: php73
env_variables:
APP_URL: https://example.com
#This variable will be override with gitlab variable environment
API_KEY: DEV_API_KEY