Commit b34506b5 authored by Kamil Trzciński's avatar Kamil Trzciński

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
parents 5b77fa8c ca7a9351
---
title: Use to 'gitlabktl' build serverless applications
merge_request: 29258
author:
type: added
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment