7 Commits

Author SHA1 Message Date
99db648a36 - Endlessly fighting the ENV - I should be loading from the package... 2023-05-06 09:40:25 -04:00
adcab6afcb Double dollar
Some checks failed
continuous-integration/drone/push Build encountered an error
2023-05-06 09:28:24 -04:00
8e40c0a06c Tweaking the ENV
Some checks failed
continuous-integration/drone/push Build encountered an error
2023-05-06 09:19:31 -04:00
db5e4858b8 More ENV updates
Some checks failed
continuous-integration/drone/push Build was killed
2023-05-06 09:10:45 -04:00
d800311ae7 - ENV updates
Some checks failed
continuous-integration/drone/push Build encountered an error
2023-05-06 09:08:15 -04:00
32fdde5d90 - The missing env variables...
Some checks failed
continuous-integration/drone/push Build encountered an error
2023-05-06 08:43:26 -04:00
2eacdaeece Tweaks
Some checks failed
continuous-integration/drone/push Build encountered an error
2023-05-06 01:38:00 -04:00
6 changed files with 31 additions and 30 deletions

View File

@@ -61,7 +61,7 @@ trigger:
branch:
- main
event:
- pull_request
# - pull_request
- push
---
@@ -110,8 +110,14 @@ steps:
- failure
- name: Publish Image
image: docker
environment:
USERNAME:
from_secret: registry_username
PASSWORD:
from_secret: registry_password
commands:
- docker build -f docker-compose.staging.yml -t git.mifi.dev/mifi/mifi/auth:latest .
- docker login git.mifi.dev
- docker build -t git.mifi.dev/mifi/mifi/auth:latest -t git.mifi.dev/mifi/mifi/auth:${DRONE_TAG} .
- docker push git.mifi.dev/mifi/mifi/auth:latest
volumes:
- name: dockersock
@@ -168,10 +174,10 @@ depends_on:
- Test Pipeline
trigger:
branch:
- main
# branch:
# - main
event:
- push
# - push
- tag
---
@@ -186,14 +192,19 @@ steps:
- name: Deploy Container
image: docker
privileged: true
environment:
- HOST=area51.mifi.dev
- PORT=9001
- ROUTE_PREFIX=/auth
- CONTAINER_PREFIX=mifi
commands:
- docker compose -f docker-compose.staging.yml pull
- docker compose -f docker-compose.staging.yml build --no-cache
- docker compose -f docker-compose.staging.yml rm --stop
- docker compose -f docker-compose.staging.yml up --wait
volumes:
- name: env
path: /drone/grow/staging.env
- name: env-secrets
path: /drone/grow/.env.staging
- name: dockersock
path: /var/run/docker.sock
- name: dockerconfig
@@ -222,16 +233,16 @@ volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: env
- name: env-secrets
host:
path: /volume1/docker/beethoven/labs-auth/staging.env
path: /volume1/docker/beethoven/labs-auth/.env.staging
depends_on:
- Test Pipeline
trigger:
branch:
- main
# branch:
# - main
event:
- push
# - push
- tag

View File

@@ -27,5 +27,3 @@ RESET_VALID_MINUTES=15
DEFAULT_TOKEN_DAYS=1
CONTAINER_PREFIX=dev
SERVICE_NAME=auth-service
DB_TYPE=mongo

View File

@@ -1,13 +1,3 @@
# FROM node:20-alpine AS build
# RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
# WORKDIR /home/node/app
# COPY package*.json .
# COPY dist/lib .
# USER node
# RUN yarn install --frozen-lockfile --production
# COPY --chown=node:node node_modules ./node_modules
# CMD ["node", "dist/lib/server/index.js"]
FROM node:20-alpine AS build
WORKDIR /home/node/app
COPY package*.json ./

View File

@@ -2,7 +2,7 @@ version: '3.8'
services:
auth-service_mongo:
env_file: dev.env
env_file: .env.dev
container_name: ${CONTAINER_PREFIX:-dev}-auth-service_mongo
ports:
- 27017:27017
@@ -14,7 +14,7 @@ services:
restart: unless-stopped
image: mongo:latest
auth-service:
env_file: dev.env
env_file: .env.dev
build: .
container_name: ${CONTAINER_PREFIX:-dev}-auth-service
ports:

View File

@@ -3,7 +3,8 @@ version: '3.8'
services:
auth-service_mongo:
container_name: ${CONTAINER_PREFIX:-mifi}-auth-service_mongo
env_file: staging.env
env_file:
- .env.staging
networks:
- docknet
volumes:
@@ -11,7 +12,8 @@ services:
restart: unless-stopped
image: mongo:latest
auth-service:
env_file: staging.env
env_file:
- .env.staging
build: .
container_name: ${CONTAINER_PREFIX:-mifi}-auth-service
environment:

View File

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