Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ocm-engine
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
Harbor 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
svdh
ocm-engine
Commits
492f6ab6
Unverified
Commit
492f6ab6
authored
10 months ago
by
Zdravko Iliev
Browse files
Options
Downloads
Patches
Plain Diff
ci: merge build and lint steps
parent
0f6864e3
No related branches found
No related tags found
1 merge request
!89
feat: did svdx integration OP#248
Pipeline
#74271
passed
10 months ago
Stage: build
Stage: trigger-deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/agent/deployment/ci-cd/Dockerfile
+5
-19
5 additions, 19 deletions
apps/agent/deployment/ci-cd/Dockerfile
with
5 additions
and
19 deletions
apps/agent/deployment/ci-cd/Dockerfile
+
5
−
19
View file @
492f6ab6
FROM
node:18.19.1
as
base
FROM
node:18.19.1
AS
base
RUN
apt update
-y
&&
apt
install
yarn python3 make build-essential
-y
RUN
apt update
-y
&&
apt
install
yarn python3 make build-essential
-y
FROM
base
as
deps
FROM
base
AS
deps
WORKDIR
/app
WORKDIR
/app
COPY
package.json .
COPY
package.json .
...
@@ -9,30 +9,17 @@ COPY yarn.lock .
...
@@ -9,30 +9,17 @@ COPY yarn.lock .
RUN
yarn
install
--frozen-lockfile
RUN
yarn
install
--frozen-lockfile
FROM
base
as
linter
FROM
base
AS
builder
#TODO: pass MR title and validate it
RUN
apt update
-y
&&
apt
install
yarn python3 make build-essential
-y
WORKDIR
/app
WORKDIR
/app
COPY
. .
COPY
. .
COPY
--from=deps /app/node_modules ./node_modules
COPY
--from=deps /app/node_modules ./node_modules
RUN
npx nx run-many
--target
=
lint
--projects
=
agent
--configuration
=
production
RUN
npx nx run-many
--target
=
lint
--projects
=
agent
--configuration
=
production
RUN
npx nx run-many
--target
=
test
--projects
=
agent
--configuration
=
production
RUN
npx nx run-many
--target
=
test
--projects
=
agent
--configuration
=
production
RUN
npx nx run-many
--target
=
build
--projects
=
agent
--configuration
=
production
FROM
base
as
builder
FROM
node:18.19.1-buster-slim
AS
production
RUN
apt update
-y
&&
apt
install
yarn python3 make build-essential
-y
WORKDIR
/app
COPY
. .
COPY
--from=deps /app/node_modules ./node_modules
RUN
yarn nx run-many
--target
=
build
--projects
=
agent
--configuration
=
production
FROM
node:18.19.1-buster-slim
as
production
ENV
NODE_ENV production
ENV
NODE_ENV production
...
@@ -40,7 +27,6 @@ RUN apt update -y && apt install yarn python3 make build-essential -y
...
@@ -40,7 +27,6 @@ RUN apt update -y && apt install yarn python3 make build-essential -y
WORKDIR
/app
WORKDIR
/app
#copy from build
COPY
--from=builder /app/dist .
COPY
--from=builder /app/dist .
COPY
--from=builder /app/dist/apps/agent/package.json .
COPY
--from=builder /app/dist/apps/agent/package.json .
...
...
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