Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VFL-Packages
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Langer, Jacek
VFL-Packages
Commits
c0f98471
Commit
c0f98471
authored
3 years ago
by
Langer, Jacek
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
8866c7cf
No related branches found
No related tags found
No related merge requests found
Pipeline
#148288
failed
3 years ago
Stage: build
Stage: pull db container
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-6
18 additions, 6 deletions
.gitlab-ci.yml
with
18 additions
and
6 deletions
.gitlab-ci.yml
+
18
−
6
View file @
c0f98471
# Build and push the Docker image off of merges to master; based off
# Build and push the Docker image off of merges to master; based off
# of Gitlab CI support in https://pythonspeed.com/products/pythoncontainer/
# of Gitlab CI support in https://pythonspeed.com/products/pythoncontainer/
docker-build
:
default
:
stage
:
build
image
:
image
:
# An alpine-based image with the `docker` CLI installed.
# An alpine-based image with the `docker` CLI installed.
name
:
docker:19.03.12
name
:
docker:19.03.12
stages
:
-
"
build"
-
"
pull
db
container"
docker-build
:
stage
:
build
# This will run a Docker daemon in a container (Docker-In-Docker), which will
# This will run a Docker daemon in a container (Docker-In-Docker), which will
# be available at thedockerhost:2375. If you make e.g. port 5000 public in Docker
# be available at thedockerhost:2375. If you make e.g. port 5000 public in Docker
# (`docker run -p 5000:5000 yourimage`) it will be exposed at thedockerhost:5000.
# (`docker run -p 5000:5000 yourimage`) it will be exposed at thedockerhost:5000.
...
@@ -33,9 +38,16 @@ docker-build:
...
@@ -33,9 +38,16 @@ docker-build:
-
echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
-
echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
-
docker build -t "$CI_REGISTRY_IMAGE" .
-
docker build -t "$CI_REGISTRY_IMAGE" .
-
docker push "$CI_REGISTRY_IMAGE"
-
docker push "$CI_REGISTRY_IMAGE"
-
docker pull registry.git-ce.rwth-aachen.de/etit/docker-test-images/ms-sql-docker-base:latest
# Only build off of master branch:
only
:
only
:
-
main
-
main
Pull
:
stage
:
"
pull
db
container"
script
:
-
|
echo "login into registry.git-ce.rwth-aachen.de/etit/docker-test-images"
echo $CI_BUILD_TOKEN | docker login registry.git-ce.rwth-aachen.de/etit/docker-test-images -u $CI_REGISTRY_USER
echo "downloading scripts"
docker pull registry.git-ce.rwth-aachen.de/etit/docker-test-images/ms-sql-docker-base:latest
# Only build off of master 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