0.0.13 • Published 4 years ago

@mpelos/loko v0.0.13

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Loko

Under development tool for deploying serverless services.

Example

version: "0.1"

engine:
  name: cloud-build
  options:
    project: my-gcp-project
    timeout: 900s # Cloud build timeout

services:
  some-cloudrun-service:
    build:
      repository:
        type: git
        url: https://somegit.com/somerepo/somerepo.git
      branch: master
    image: some-cloudrun-service:latest
    deploy:
      type: google-cloud-run
      name: some-cloudrun-service
      options:
        memory: 256Mi
        region: us-central1
        vpc_connector: default-connector
      environment:
        NODE_ENV: production
      env_files:
        - ./env_file/path

  some-cloud-functions-http-service:
    build:
      repository:
        type: cloud_source_repositories
        name: repoName
      head: a3e0d01
    image: some-cloud-functions-http-service:latest
    deploy:
      type: google-cloud-functions
      name: some-cloudrun-service
      app_container_dir: /opt/app
      options:
        entrypoint: index
        memory: 256MB
        region: us-central1
        runtime: nodejs10
        timeout: 300
        trigger: http
        vpc_connector: default-connector
      environment:
        NODE_ENV: production

  some-cloud-functions-topic-service:
    build:
      repository:
        type: git
        url: https://somegit.com/somerepo/somerepo.git
      branch: master
    image: some-cloud-functions-http-service:latest
    deploy:
      type: google-cloud-functions
      name: some-cloudrun-service
      app_container_dir: /opt/app
      options:
        entrypoint: index
        memory: 256MB
        region: us-central1
        runtime: nodejs10
        timeout: 300
        trigger: topic
        trigger_topic: pubsub-topic-name
        vpc_connector: default-connector
      environment:
        NODE_ENV: production

  some-firebase-hosting-app:
    build:
      repository:
        type: git
        url: https://somegit.com/somerepo/somerepo.git
      branch: master
      args:
        ENV: production
    image:
    deploy:
      type: firebase-hosting
      app_container_dir: /opt/app/public_dir
      options:
        config_file: firebase.production.json
0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago