Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetaGer Keymanager
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
open-source
MetaGer Keymanager
Commits
8bd3f2fa
Commit
8bd3f2fa
authored
2 years ago
by
Dominik Hebeler
Browse files
Options
Downloads
Patches
Plain Diff
fixed build context
parent
e20d1cdb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#7226
passed
2 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-2
3 additions, 2 deletions
.gitlab-ci.yml
with
3 additions
and
2 deletions
.gitlab-ci.yml
+
3
−
2
View file @
8bd3f2fa
...
@@ -16,7 +16,7 @@ npm_deps:
...
@@ -16,7 +16,7 @@ npm_deps:
stage
:
build
stage
:
build
image
:
${NODE_IMAGE}
image
:
${NODE_IMAGE}
variables
:
variables
:
npm_config_cache
:
${CI_
BUILDS
_DIR}/pass/.npm
npm_config_cache
:
${CI_
PROJECT
_DIR}/pass/.npm
cache
:
cache
:
key
:
npm-cache
key
:
npm-cache
paths
:
paths
:
...
@@ -28,6 +28,7 @@ npm_deps:
...
@@ -28,6 +28,7 @@ npm_deps:
script
:
script
:
-
cd pass
-
cd pass
-
npm i
-
npm i
-
chown -R 1000:1000 node_modules
build
:
build
:
stage
:
build
stage
:
build
...
@@ -38,7 +39,7 @@ build:
...
@@ -38,7 +39,7 @@ build:
before_script
:
before_script
:
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
-
docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
script
:
script
:
-
docker build --network=host -t ${CI_REGISTRY_IMAGE}/${DOCKER_IMAGE_NAME}:${DOCKER_TAG_NAME} ./build/pass
-
docker build --network=host -t ${CI_REGISTRY_IMAGE}/${DOCKER_IMAGE_NAME}:${DOCKER_TAG_NAME}
-f
./build/pass
/Dockerfile .
-
docker push ${CI_REGISTRY_IMAGE}/${DOCKER_IMAGE_NAME}:${DOCKER_TAG_NAME}
-
docker push ${CI_REGISTRY_IMAGE}/${DOCKER_IMAGE_NAME}:${DOCKER_TAG_NAME}
after_script
:
after_script
:
-
docker logout $CI_REGISTRY
-
docker logout $CI_REGISTRY
...
...
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