debian-mirror-gitlab/lib/gitlab/ci/templates/Serverless.gitlab-ci.yml
2019-10-12 21:52:04 +05:30

30 lines
720 B
YAML

# GitLab Serverless template
image: alpine:latest
stages:
- build
- test
- deploy
.serverless:build:image:
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
stage: build
script: /usr/bin/gitlabktl app build
.serverless:deploy:image:
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
stage: deploy
environment: development
script: /usr/bin/gitlabktl app deploy
.serverless:build:functions:
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
stage: build
script: /usr/bin/gitlabktl serverless build
.serverless:deploy:functions:
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
stage: deploy
environment: development
script: /usr/bin/gitlabktl serverless deploy