Merge branch 'feature/gb/use-gitlabktl-to-build-serverless-applications' into 'master'

Use `gitlabktl` to build serverless applications

Closes #61184

See merge request gitlab-org/gitlab-ce!29258
This commit is contained in:
Kamil Trzciński 2019-06-06 12:14:30 +00:00
commit b34506b54a
2 changed files with 7 additions and 8 deletions

View file

@ -0,0 +1,5 @@
---
title: Use to 'gitlabktl' build serverless applications
merge_request: 29258
author:
type: added

View file

@ -8,15 +8,9 @@ stages:
- deploy
.serverless:build:image:
variables:
DOCKERFILE: "Dockerfile"
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/$DOCKERFILE --destination $CI_REGISTRY_IMAGE
image: registry.gitlab.com/gitlab-org/gitlabktl:latest
script: /usr/bin/gitlabktl app build
.serverless:deploy:image:
stage: deploy