Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
b1b1f3e0b9
|
|||
|
30c86accf6
|
|||
|
0882e8754e
|
@@ -91,6 +91,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- yarn set version stable
|
- yarn set version stable
|
||||||
- yarn install
|
- yarn install
|
||||||
|
- yarn build:production
|
||||||
volumes:
|
volumes:
|
||||||
- name: yarnrc
|
- name: yarnrc
|
||||||
path: /drone/auth/.yarnrc.yml
|
path: /drone/auth/.yarnrc.yml
|
||||||
@@ -124,6 +125,10 @@ steps:
|
|||||||
auto_tag: true
|
auto_tag: true
|
||||||
repo: git.mifi.dev/mifi/auth-service
|
repo: git.mifi.dev/mifi/auth-service
|
||||||
registry: git.mifi.dev
|
registry: git.mifi.dev
|
||||||
|
build_args:
|
||||||
|
MONGO_VERSION: latest
|
||||||
|
NPM_TOKEN:
|
||||||
|
from_secret: reg_token
|
||||||
ssh-agent-key:
|
ssh-agent-key:
|
||||||
from_secret: reg_token
|
from_secret: reg_token
|
||||||
username: <token>
|
username: <token>
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
ARG ENV=production
|
ARG ENV=production
|
||||||
ARG MONGO_VERSION
|
|
||||||
ARG PORT=9001
|
ARG PORT=9001
|
||||||
ARG NPM_TOKEN
|
ARG NPM_TOKEN
|
||||||
ARG YARN_VERSION=3.5.0
|
ARG YARN_VERSION=3.5.0
|
||||||
|
ARG MONGO_ENTRY_FILE=${MONGO_VERSION:-latest}
|
||||||
|
ARG MONGO_VERSION=${MONGO_VERSION:-latest}
|
||||||
|
|
||||||
## mongo build stage
|
## mongo build stage
|
||||||
FROM mongo:${MONGO_VERSION:-latest} AS database
|
FROM mongo:$MONGO_VERSION AS database
|
||||||
ENV NODE_ENV $ENV
|
ENV NODE_ENV $ENV
|
||||||
COPY docker-entrypoint-initdb.d/mongo-init-${MONGO_VERSION:-latest}.sh ./docker-entrypoint-initdb.d/mongo-init.sh
|
COPY docker-entrypoint-initdb.d/mongo-init-$MONGO_ENTRY_FILE.sh ./docker-entrypoint-initdb.d/mongo-init.sh
|
||||||
|
|
||||||
## stage one, build the service
|
## stage one, build the service
|
||||||
FROM node:20-bullseye-slim AS build
|
FROM node:20-bullseye-slim AS build
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mifi/auth-service",
|
"name": "@mifi/auth-service",
|
||||||
"version": "1.0.4",
|
"version": "1.0.7",
|
||||||
"author": "mifi (Mike Fitzpatrick)",
|
"author": "mifi (Mike Fitzpatrick)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user