Skip to content
Snippets Groups Projects
Commit 01b79938 authored by Thibault Debatty's avatar Thibault Debatty
Browse files

fix release job

parent 28f584de
No related branches found
No related tags found
No related merge requests found
Pipeline #10288 failed
stages:
- build
- release
build:
image: docker:20.10.16
......@@ -19,11 +23,12 @@ build:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA .
release:
build:tagged:
image: docker:20.10.16
# run on a gitlab-runner that is configured with docker-in-docker
tags:
- dind
stage: build
# only for git tags
only:
- tags
......@@ -47,5 +52,16 @@ release:
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
release_job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
rules:
- if: $CI_COMMIT_TAG # Run this job when a tag is created
script:
- echo "running release_job"
release: # See https://docs.gitlab.com/ee/ci/yaml/#release for available properties
tag_name: '$CI_COMMIT_TAG'
description: '$CI_COMMIT_TAG'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment