Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ascii-alignment-pileup
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zavolan_group
tools
ascii-alignment-pileup
Merge requests
!8
ci: automatically add release
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
ci: automatically add release
ci_release
into
main
Overview
0
Commits
3
Pipelines
1
Changes
1
Merged
Alex Kanitz
requested to merge
ci_release
into
main
2 years ago
Overview
0
Commits
3
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
445b8ff1
3 commits,
2 years ago
1 file
+
35
−
11
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
35
−
11
Options
@@ -2,6 +2,10 @@ default:
tags
:
-
shell
variables
:
IMAGE
:
"
${DOCKER_ORG}/${DOCKER_REPO}"
BUILD_TAG
:
"
build"
workflow
:
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "push"
@@ -19,16 +23,8 @@ build_conda:
build_docker
:
stage
:
build
before_script
:
-
export IMAGE="${DOCKER_ORG}/${DOCKER_REPO}"
-
export BUILD_TAG="build"
-
echo "IMAGE=$IMAGE" >> build.env
-
echo "BUILD_TAG=$BUILD_TAG" >> build.env
script
:
-
docker build -t ${IMAGE}:${BUILD_TAG} .
artifacts
:
reports
:
dotenv
:
build.env
test_conda
:
stage
:
test
@@ -43,18 +39,27 @@ test_docker:
stage
:
test
needs
:
-
job
:
build_docker
artifacts
:
true
script
:
-
docker run --rm ${IMAGE}:${BUILD_TAG} tests/test.sh
publish_get_version
:
stage
:
publish
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script
:
-
export VERSION=$(grep 'version <-' ascii_alignment_pileup.R | cut -f2 -d'"')
-
echo "VERSION=$VERSION" >> publish.env
artifacts
:
reports
:
dotenv
:
publish.env
publish_docker
:
stage
:
publish
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
needs
:
-
job
:
build_docker
artifacts
:
true
-
job
:
test_docker
-
job
:
publish_get_version
before_script
:
-
export VERSION=$(grep 'version <-' ascii_alignment_pileup.R | cut -f2 -d'"')
script
:
@@ -63,3 +68,22 @@ publish_docker:
-
docker tag ${IMAGE}:${BUILD_TAG} ${IMAGE}:latest
-
docker push ${IMAGE}:${VERSION}
-
docker push ${IMAGE}:latest
publish_release
:
stage
:
publish
tags
:
-
docker
rules
:
-
if
:
$CI_COMMIT_TAG
when
:
never
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
needs
:
-
job
:
publish_get_version
image
:
registry.gitlab.com/gitlab-org/release-cli:latest
script
:
-
echo "running release_job for $TAG"
release
:
tag_name
:
"
$VERSION"
description
:
"
Release
created
using
the
release-cli."
ref
:
"
$CI_COMMIT_SHA"
allow_failure
:
true
Loading