Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lecture-devops-app
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
s80984
lecture-devops-app
Commits
20229d9d
Commit
20229d9d
authored
3 years ago
by
s80984
Browse files
Options
Downloads
Patches
Plain Diff
Update build pipeline
parent
d4da0cdc
No related branches found
No related tags found
No related merge requests found
Pipeline
#14132
failed
3 years ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci.yml
docker-compose.yml
+1
-1
1 addition, 1 deletion
docker-compose.yml
with
6 additions
and
6 deletions
.gitlab-ci.yml
+
5
−
5
View file @
20229d9d
...
...
@@ -25,16 +25,16 @@ job_build-image:
-
name
:
docker:20.10.12-dind
before_script
:
-
apk add --no-cache docker-compose
-
docker info
-
docker-compose --version
#
- docker info
#
- docker-compose --version
script
:
# - docker-compose up #--tag "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}" ps
-
docker-compose up -d --build
#
- docker-compose up -d --build
-
docker build
--file "app/server/Containerfile"
--tag "${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}"
# - docker ps
# - docker network list
#
#
- docker ps
#
#
- docker network list
# # NOTE: push image to local registry so that it can be accessed in subsequent jobs
-
docker login -u ${CI_REGISTRY_USER} -p ${CI_REGISTRY_PASSWORD} ${CI_REGISTRY}
...
...
This diff is collapsed.
Click to expand it.
docker-compose.yml
+
1
−
1
View file @
20229d9d
...
...
@@ -9,7 +9,7 @@ services:
-
mongodb:/.local/db/data/db
app
:
container_name
:
node-mongo-app
#
image:
.name:rc2
image
:
${CI_REGISTRY_IMAGE}:${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}
restart
:
always
build
:
./app/server
ports
:
...
...
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