30 lines
720 B
YAML
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
|