Compare commits

..
7 Commits
Author SHA1 Message Date
niggl 8f3faee573 Revert "updated templates"
This reverts commit 6ff2ba702b.
2024-12-02 15:57:04 +01:00
niggl 6ff2ba702b updated templates 2024-11-21 17:51:23 +01:00
niggl 4ecefe8534 fix(ci): Switched to non-drone env vars 2024-02-13 17:25:07 +01:00
niggl ab9295ee23 Frozen lockfile instead of offline
continuous-integration/drone/push Build is passing
2023-03-29 20:15:10 +02:00
niggl 29d4e21656 lockfile 2023-03-29 20:12:06 +02:00
niggl 490f24422b Switched docker over to pnpm w/cache 2023-03-29 20:11:55 +02:00
niggl 67eb761a99 switched ci to pnpm cache 2023-03-29 20:10:34 +02:00
3 changed files with 816 additions and 797 deletions
+17 -16
View File
@@ -19,6 +19,13 @@ get:
path: odit-git-bot
name: sshkey
---
kind: secret
name: npm_url
get:
path: odit-npm-cache
name: url
---
kind: pipeline
type: kubernetes
@@ -30,7 +37,7 @@ steps:
- name: clone
image: alpine/git
commands:
- git clone $DRONE_REMOTE_URL .
- git clone $CI_REPO_CLONE_URL .
- git checkout dev
- name: build dev
depends_on: ["clone"]
@@ -41,10 +48,8 @@ steps:
password:
from_secret: docker_password
build_args:
- NPM_REGISTRY_DOMAIN:
from_secret: npmjs_domain
- NPM_REGISTRY_TOKEN:
from_secret: npmjs_token
- NPM_REGISTRY_URL:
from_secret: npm_url
repo: lfk/document-server
tags:
- dev
@@ -67,7 +72,7 @@ steps:
- name: clone
image: alpine/git
commands:
- git clone $DRONE_REMOTE_URL .
- git clone $CI_REPO_CLONE_URL .
- git checkout dev
- name: build dev
depends_on: ["clone"]
@@ -78,10 +83,8 @@ steps:
password:
from_secret: docker_password
build_args:
- NPM_REGISTRY_DOMAIN:
from_secret: npmjs_domain
- NPM_REGISTRY_TOKEN:
from_secret: npmjs_token
- NPM_REGISTRY_URL:
from_secret: npm_url
repo: lfk/document-server
tags:
- latest
@@ -100,7 +103,7 @@ type: kubernetes
name: build:tags
steps:
- name: build $DRONE_TAG
- name: build $CI_COMMIT_TAG
depends_on: ["clone"]
image: registry.odit.services/library/drone-kaniko
settings:
@@ -109,13 +112,11 @@ steps:
password:
from_secret: docker_password
build_args:
- NPM_REGISTRY_DOMAIN:
from_secret: npmjs_domain
- NPM_REGISTRY_TOKEN:
from_secret: npmjs_token
- NPM_REGISTRY_URL:
from_secret: npm_url
repo: lfk/document-server
tags:
- "${DRONE_TAG}"
- "${CI_COMMIT_TAG}"
cache: true
registry: registry.odit.services
trigger:
+7 -4
View File
@@ -1,14 +1,17 @@
# Typescript Build
FROM registry.odit.services/hub/library/node:19.0.1-alpine3.16 AS build
ARG NPM_REGISTRY_URL=https://registry.npmjs.org
WORKDIR /app
COPY package.json ./
RUN npm i -g pnpm@7.29.3
RUN pnpm i
RUN npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8
RUN mkdir /pnpm && pnpm config set store-dir /pnpm && pnpm i
COPY tsconfig.json ./
COPY src ./src
RUN pnpm run build \
RUN pnpm build \
&& rm -rf /app/node_modules \
&& pnpm i --production --prefer-offline
&& pnpm i --production --frozen-lockfile
# final image
FROM registry.odit.services/hub/library/alpine:3.16
+792 -777
View File
File diff suppressed because it is too large Load Diff