Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CRA to Vite Migration Script
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
Zandor Smith
CRA to Vite Migration Script
Commits
60cf5f5c
Verified
Commit
60cf5f5c
authored
11 months ago
by
Zandor Smith
Browse files
Options
Downloads
Patches
Plain Diff
Setup Docker image building.
parent
81b4707e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#327138
passed
11 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+34
-0
34 additions, 0 deletions
.gitlab-ci.yml
Dockerfile
+11
-0
11 additions, 0 deletions
Dockerfile
with
45 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
34
−
0
View file @
60cf5f5c
# This file is a template, and might need editing before it works on your project.
# Official docker image.
image
:
docker:latest
services
:
-
docker:dind
.build-main
:
stage
:
build
script
:
# - cd $TAG
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$TAG" .
-
docker push "$CI_REGISTRY_IMAGE:$TAG"
only
:
-
main
tags
:
-
docker-build
build-latest
:
extends
:
.build-main
variables
:
TAG
:
latest
build
:
stage
:
build
script
:
-
docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
-
docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
-
docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except
:
-
main
tags
:
-
docker-build
This diff is collapsed.
Click to expand it.
Dockerfile
0 → 100644
+
11
−
0
View file @
60cf5f5c
FROM
node:20
COPY
. /app
WORKDIR
/app
RUN
yarn
install
WORKDIR
/target
CMD
["node", "/app/src/index.mjs"]
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