Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vt-research-connect-frontend
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
cscapstone-group3
vt-research-connect-frontend
Commits
230f3b00
Commit
230f3b00
authored
9 months ago
by
Johann Ruiz
Browse files
Options
Downloads
Patches
Plain Diff
Pushing up dockerfile and pipeline files
parent
dd1e0b16
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#10636
failed
9 months ago
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+26
-0
26 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+13
-0
13 additions, 0 deletions
Dockerfile
with
39 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
26
−
0
View file @
230f3b00
stages
:
# List of stages for jobs, and their order of execution
-
build
-
test
-
deploy
build-job
:
# This job runs in the build stage, which runs first.
stage
:
build
script
:
-
echo "Compiling the code..."
-
npm run build
-
echo "Compile complete."
test-job
:
stage
:
test
script
:
-
echo "Running tests"
deploy-job
:
# This job runs in the deploy stage.
stage
:
deploy
# It only runs when *both* jobs in the test stage complete successfully.
environment
:
production
script
:
-
echo "Deploying application..."
-
docker build -t $CI_REGISTRY_IMAGE .
-
docker push $CI_REGISTRY_IMAGE
-
echo "Application successfully deployed."
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
13
−
0
View file @
230f3b00
FROM
node:18-alpine
WORKDIR
/vtrc
COPY
public/ /vtrc/public
COPY
src/ /vtrc/src
COPY
package.json package-lock.json tsconfig.json vite.config.ts tsconfig.node.json index.html .eslintrc.cjs /vtrc/
RUN
npm ci
EXPOSE
5173
CMD
["npm", "run", "dev", "--", "--host"]
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