6 Commits

Author SHA1 Message Date
0ad99d3f0a Maybe with ENV vars? 2023-05-26 09:13:02 -04:00
bb7b15351d More attempts at publishing... 2023-05-26 09:08:33 -04:00
bc73ab271b ugh 2023-05-25 13:30:17 -04:00
b1b1f3e0b9 Muahahahaha. Or not... 2023-05-25 13:08:14 -04:00
30c86accf6 Hmmm. 2023-05-25 13:00:16 -04:00
0882e8754e Incrementing versions we go... 2023-05-25 12:42:27 -04:00
3 changed files with 13 additions and 4 deletions

View File

@@ -91,6 +91,7 @@ steps:
commands:
- yarn set version stable
- yarn install
- yarn build:production
volumes:
- name: yarnrc
path: /drone/auth/.yarnrc.yml
@@ -124,6 +125,11 @@ steps:
auto_tag: true
repo: git.mifi.dev/mifi/auth-service
registry: git.mifi.dev
build_args:
- MONGO_ENTRY_FILE=latest
- MONGO_VERSION=latest
- NPM_TOKEN:
from_secret: reg_token
ssh-agent-key:
from_secret: reg_token
username: <token>

View File

@@ -1,13 +1,16 @@
ARG ENV=production
ARG MONGO_VERSION
ARG PORT=9001
ARG NPM_TOKEN
ARG YARN_VERSION=3.5.0
ARG MONGO_ENTRY_FILE=${MONGO_VERSION:-latest}
ARG MONGO_VERSION=${MONGO_VERSION:-latest}
## mongo build stage
FROM mongo:${MONGO_VERSION:-latest} AS database
FROM mongo:$MONGO_VERSION AS database
ENV NODE_ENV $ENV
COPY docker-entrypoint-initdb.d/mongo-init-${MONGO_VERSION:-latest}.sh ./docker-entrypoint-initdb.d/mongo-init.sh
ENV MONGO_ENTRY_FILE $MONGO_ENTRY_FILE
ENV MONGO_VERSION $MONGO_VERSION
COPY docker-entrypoint-initdb.d/mongo-init-$MONGO_ENTRY_FILE.sh ./docker-entrypoint-initdb.d/mongo-init.sh
## stage one, build the service
FROM node:20-bullseye-slim AS build

View File

@@ -1,6 +1,6 @@
{
"name": "@mifi/auth-service",
"version": "1.0.4",
"version": "1.0.10",
"author": "mifi (Mike Fitzpatrick)",
"license": "MIT",
"scripts": {