Commit 86d0f508 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

put release into its own job

parent b3479de4
......@@ -12,6 +12,7 @@ default:
stages:
- kaniko
- release
build:
stage: kaniko
......@@ -28,6 +29,22 @@ push:
- $CI_COMMIT_TAG
script:
- /kaniko/executor --context "${CI_PROJECT_DIR}" --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
release:
inherit:
# we don't need the before_script and we replace the image anyway
default: [tags, interruptible]
image: registry.gitlab.com/gitlab-org/release-cli:latest
stage: release
environment:
name: release
only:
variables:
- $CI_COMMIT_TAG
interruptible: true
# script or trigger is required :/
script:
- echo "Creating release ${CI_COMMIT_TAG}"
release:
name: "Release ${CI_COMMIT_TAG}"
description: "Automatically created by the pipeline"
......
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