debian-mirror-gitlab/lib/gitlab/ci/templates/Serverless.gitlab-ci.yml

34 lines
934 B
YAML
Raw Normal View History

2019-07-07 11:18:12 +05:30
# GitLab Serverless template
image: alpine:latest
stages:
- build
2019-07-31 22:56:46 +05:30
- test
2019-07-07 11:18:12 +05:30
- deploy
.serverless:build:image:
stage: build
2019-09-04 21:01:54 +05:30
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
script: /usr/bin/gitlabktl app build
2019-07-07 11:18:12 +05:30
.serverless:deploy:image:
stage: deploy
2019-09-04 21:01:54 +05:30
image: gcr.io/triggermesh/tm@sha256:3cfdd470a66b741004fb02354319d79f1598c70117ce79978d2e07e192bfb336 # v0.0.11
2019-07-07 11:18:12 +05:30
environment: development
script:
- echo "$CI_REGISTRY_IMAGE"
- tm -n "$KUBE_NAMESPACE" --config "$KUBECONFIG" deploy service "$CI_PROJECT_NAME" --from-image "$CI_REGISTRY_IMAGE" --wait
.serverless:build:functions:
stage: build
environment: development
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
script: /usr/bin/gitlabktl serverless build
.serverless:deploy:functions:
stage: deploy
environment: development
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
script: /usr/bin/gitlabktl serverless deploy