Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
FDO Manager WebUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
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
Code review analytics
Issue 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
fdo
FDO Manager WebUI
Commits
9cb8aac6
Verified
Commit
9cb8aac6
authored
1 year ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
PIPELINE: custom docker image for testing
parent
58166812
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#47161
passed
1 year ago
Stage: setup
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+34
-3
34 additions, 3 deletions
.gitlab-ci.yml
.test/Dockerfile
+10
-0
10 additions, 0 deletions
.test/Dockerfile
with
44 additions
and
3 deletions
.gitlab-ci.yml
+
34
−
3
View file @
9cb8aac6
variables
:
CI_REGISTRY_IMAGE_ENV
:
$CI_REGISTRY/fdo/fdo-manager-webui/testenv:$CI_COMMIT_REF_NAME
default
:
image
:
node:lts-alpine
image
:
docker:22.06-rc
tags
:
-
docker
...
...
@@ -9,10 +11,39 @@ workflow:
-
if
:
$CI_PIPELINE_SOURCE != "merge_request_event" && $CI_COMMIT_REF_NAME != $CI_COMMIT_TAG
stages
:
-
setup
-
test
webui:build-test
:
stage
:
test
webui:setup
:
stage
:
setup
rules
:
-
if
:
$RUN_SETUP_STAGE == "false"
when
:
never
-
if
:
$CI_PIPELINE_SOURCE == "schedule"
-
if
:
$CI_PIPELINE_SOURCE == "web"
-
if
:
$CI_PIPELINE_SOURCE != "schedule"
changes
:
-
.test/Dockerfile
-
package.json
-
package-lock.json
-
.gitlab-ci.yml
script
:
-
echo "registry $CI_REGISTRY"
-
docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
-
docker build --pull -t $CI_REGISTRY_IMAGE_ENV -f .test/Dockerfile .
-
docker push $CI_REGISTRY_IMAGE_ENV
.webui:job
:
&webui-job
image
:
$CI_REGISTRY_IMAGE_ENV
stage
:
test
needs
:
-
job
:
"
webui:setup"
optional
:
true
before_script
:
-
cp -r -t ./ /webui/node_modules
-
npm install
webui:build-test
:
<<
:
*webui-job
script
:
-
npm run build
This diff is collapsed.
Click to expand it.
.test/Dockerfile
0 → 100644
+
10
−
0
View file @
9cb8aac6
FROM
node:lts-alpine
COPY
./package.json /webui/package.json
COPY
./package-lock.json /webui/package-lock.json
WORKDIR
/webui
RUN
npm
install
ENTRYPOINT
[""]
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