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
Commits
6650c0b6
Commit
6650c0b6
authored
2 years ago
by
Alex Kanitz
Browse files
Options
Downloads
Patches
Plain Diff
check
parent
18579103
No related branches found
No related tags found
1 merge request
!7
ci: add Conda tests and refactor
Pipeline
#14476
failed
2 years ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+7
-7
7 additions, 7 deletions
.gitlab-ci.yml
with
7 additions
and
7 deletions
.gitlab-ci.yml
+
7
−
7
View file @
6650c0b6
...
@@ -21,11 +21,11 @@ build_docker:
...
@@ -21,11 +21,11 @@ build_docker:
stage
:
build
stage
:
build
before_script
:
before_script
:
-
export IMAGE="${DOCKER_ORG}/${DOCKER_REPO}"
-
export IMAGE="${DOCKER_ORG}/${DOCKER_REPO}"
-
export
TAG="latest
"
-
export
BUILD_TAG="build
"
-
echo "IMAGE=$IMAGE" >> build.env
-
echo "IMAGE=$IMAGE" >> build.env
-
echo "
TAG=$
TAG" >> build.env
-
echo "
BUILD_TAG=$BUILD_
TAG" >> build.env
script
:
script
:
-
docker build -t ${IMAGE}:${TAG} .
-
docker build -t ${IMAGE}:${
BUILD_
TAG} .
artifacts
:
artifacts
:
reports
:
reports
:
dotenv
:
build.env
dotenv
:
build.env
...
@@ -45,7 +45,7 @@ test_docker:
...
@@ -45,7 +45,7 @@ test_docker:
-
job
:
build_docker
-
job
:
build_docker
artifacts
:
true
artifacts
:
true
script
:
script
:
-
docker run --rm ${IMAGE}:${TAG} tests/test.sh
-
docker run --rm ${IMAGE}:${
BUILD_
TAG} tests/test.sh
publish_docker
:
publish_docker
:
stage
:
publish
stage
:
publish
...
@@ -56,10 +56,10 @@ publish_docker:
...
@@ -56,10 +56,10 @@ publish_docker:
artifacts
:
true
artifacts
:
true
-
job
:
test_docker
-
job
:
test_docker
before_script
:
before_script
:
-
export IMAGE="${DOCKER_ORG}/${DOCKER_REPO}:latest"
-
export VERSION=$(grep 'version <-' ascii_alignment_pileup.R | cut -f2 -d'"')
-
export VERSION=$(grep 'version <-' ascii_alignment_pileup.R | cut -f2 -d'"')
script
:
script
:
-
echo "${DOCKER_TOKEN}" | docker login -u "${DOCKER_USER}" --password-stdin
-
echo "${DOCKER_TOKEN}" | docker login -u "${DOCKER_USER}" --password-stdin
-
docker tag ${IMAGE}:${TAG} ${IMAGE}:${VERSION}
-
docker tag ${IMAGE}:${
BUILD_
TAG} ${IMAGE}:${VERSION}
-
docker
push
${IMAGE}:${
TAG}
-
docker
tag
${IMAGE}:${
BUILD_TAG} ${IMAGE}:latest
-
docker push ${IMAGE}:${VERSION}
-
docker push ${IMAGE}:${VERSION}
-
docker push ${IMAGE}:latest
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment