Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
todo-application
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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
devops-project
todo-application
Commits
ac04e76f
"git@gitlab.bht-berlin.de:dev-ops/librephotos-docker.git" did not exist on "647b614d804d7a02b5778660595f35c5ea5455a0"
Commit
ac04e76f
authored
4 years ago
by
derrabauke
Browse files
Options
Downloads
Patches
Plain Diff
add server build as well
parent
cbdae71e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+30
-8
30 additions, 8 deletions
.gitlab-ci.yml
with
30 additions
and
8 deletions
.gitlab-ci.yml
+
30
−
8
View file @
ac04e76f
...
@@ -40,19 +40,19 @@ test_server:
...
@@ -40,19 +40,19 @@ test_server:
-
master
# only for now to speed up dev
-
master
# only for now to speed up dev
build_client
:
build_client
:
stage
:
build
tags
:
-
docker-privileged
image
:
docker:19.03.12
services
:
-
docker:19.03.12-dind
before_script
:
before_script
:
-
echo $CI_REGISTRY
-
echo $CI_REGISTRY
-
echo $CI_REGISTRY_USER
-
echo $CI_REGISTRY_USER
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
variables
:
variables
:
CLIENT_IMAGE_TAG
:
$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
CLIENT_IMAGE_TAG
:
$CI_REGISTRY_IMAGE/client:$CI_COMMIT_REF_SLUG
CLIENT_RELEASE_IMAGE_TAG
:
$CI_REGISTRY_IMAGE:latest
CLIENT_RELEASE_IMAGE_TAG
:
$CI_REGISTRY_IMAGE/client:latest
image
:
docker:19.03.12
services
:
-
docker:19.03.12-dind
tags
:
-
docker-privileged
stage
:
build
script
:
script
:
-
cd app/client
-
cd app/client
-
docker build -t $CLIENT_IMAGE_TAG .
-
docker build -t $CLIENT_IMAGE_TAG .
...
@@ -60,3 +60,25 @@ build_client:
...
@@ -60,3 +60,25 @@ build_client:
-
docker push $CLIENT_RELEASE_IMAGE_TAG
-
docker push $CLIENT_RELEASE_IMAGE_TAG
only
:
only
:
-
master
-
master
build_server
:
stage
:
build
tags
:
-
docker-privileged
image
:
docker:19.03.12
services
:
-
docker:19.03.12-dind
before_script
:
-
echo $CI_REGISTRY
-
echo $CI_REGISTRY_USER
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
variables
:
SERVER_IMAGE_TAG
:
$CI_REGISTRY_IMAGE/server:$CI_COMMIT_REF_SLUG
SERVER_RELEASE_IMAGE_TAG
:
$CI_REGISTRY_IMAGE/server:latest
script
:
-
cd app/server
-
docker build -t $SERVER_IMAGE_TAG .
-
docker tag $SERVER_IMAGE_TAG $SERVER_RELEASE_IMAGE_TAG
-
docker push $SERVER_RELEASE_IMAGE_TAG
only
:
-
master
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