summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/templates/Serverless.gitlab-ci.yml
blob: 5564843719195f4fc52b8f8b4efe7184d0849554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Serverless.gitlab-ci.yml

# 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