Commit 4ac48d45 authored by Sandro Mathys's avatar Sandro Mathys
Browse files

add environment to all jobs

parent daf9dae8
......@@ -30,6 +30,8 @@ stages:
build:
stage: kaniko
environment:
name: test
except:
- tags
script:
......@@ -39,6 +41,8 @@ build:
push:
stage: kaniko
environment:
name: release
only:
- tags
script:
......@@ -47,15 +51,15 @@ push:
- /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:
- tags
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
interruptible: true
# script or trigger is required :/
script:
......
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