Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker_ros_tensorflow
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
Service Desk
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
bachelor_ws
docker_ros_tensorflow
Commits
ea24d3ec
Commit
ea24d3ec
authored
2 years ago
by
franzqueissner
Browse files
Options
Downloads
Plain Diff
Merge branch 'main' of gitlab.bht-berlin.de:bachelor_ws/docker_ros_tensorflow into main
parents
36470cf6
57f81d58
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#14595
failed
2 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+5
-4
5 additions, 4 deletions
.gitlab-ci.yml
with
5 additions
and
4 deletions
.gitlab-ci.yml
+
5
−
4
View file @
ea24d3ec
...
...
@@ -12,12 +12,12 @@
docker-build
:
# Use the official docker image.
image
:
docker:
latest
image
:
docker:
stable
stage
:
build
services
:
-
docker:dind
before_script
:
-
docker login
-u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker login
registry.bht-berlin.de:443 -u "s78371" -p "jpn2tz9WYxuG_kJdZjy5"
# Default branch leaves tag empty (= latest tag)
# All other branches are tagged with the escaped branch name (commit ref slug)
script
:
...
...
@@ -29,8 +29,9 @@ docker-build:
tag=":$CI_COMMIT_REF_SLUG"
echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag"
fi
-
docker build --pull -t "$CI_REGISTRY_IMAGE${tag}" .
-
docker push "$CI_REGISTRY_IMAGE${tag}"
-
docker build --pull -t "registry.bht-berlin.de:443/bachelor_ws/docker_ros_tensorflow:latest" .
-
docker push "registry.bht-berlin.de:443/bachelor_ws/docker_ros_tensorflow:latest"
# Run this job in a branch where a Dockerfile exists
rules
:
-
if
:
$CI_COMMIT_BRANCH
...
...
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