1.1.2 • Published 4 years ago

appengine-yaml-generator v1.1.2

Weekly downloads
8
License
MIT
Repository
-
Last release
4 years ago

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
1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.2

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago