Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
775dd60b56
|
|||
|
b3365607c5
|
|||
|
96058995be
|
|||
|
1d43b78590
|
|||
|
243682758a
|
65
.drone.yml
65
.drone.yml
@@ -10,23 +10,19 @@ steps:
|
||||
image: node:latest
|
||||
commands:
|
||||
- yarn install
|
||||
|
||||
- name: Code Style Checks
|
||||
image: node:latest
|
||||
commands:
|
||||
- yarn prettier
|
||||
|
||||
- name: Lint
|
||||
image: node:latest
|
||||
commands:
|
||||
- yarn lint
|
||||
|
||||
- name: Unit Tests
|
||||
image: node:latest
|
||||
commands:
|
||||
- yarn test
|
||||
|
||||
- name: Send Status Notification
|
||||
- name: Send Test Status Notification
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||
@@ -41,34 +37,14 @@ steps:
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Build Pipeline
|
||||
|
||||
workspace:
|
||||
path: /drone/grow
|
||||
|
||||
steps:
|
||||
- name: yarn install
|
||||
image: node:latest
|
||||
commands:
|
||||
- yarn install
|
||||
|
||||
- name: Build
|
||||
image: node:latest
|
||||
commands:
|
||||
- yarn build
|
||||
|
||||
- name: Send Status Notifications
|
||||
- name: Send Build Status Notifications
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
||||
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||
content_type: application/json
|
||||
template: |
|
||||
{
|
||||
@@ -81,14 +57,13 @@ steps:
|
||||
- success
|
||||
- failure
|
||||
|
||||
depends_on:
|
||||
- Test Pipeline
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -100,7 +75,7 @@ workspace:
|
||||
path: /drone/grow
|
||||
|
||||
steps:
|
||||
- name: Build Service
|
||||
- name: Build Package
|
||||
image: node:latest
|
||||
commands:
|
||||
- yarn install
|
||||
@@ -117,7 +92,8 @@ steps:
|
||||
token:
|
||||
- from_secret: gitea_token
|
||||
volumes:
|
||||
- name: yarnrc
|
||||
- name: npmrc
|
||||
path: /drone/grow/.npmrc
|
||||
- name: Report NPM Publish Status
|
||||
image: plugins/webhook
|
||||
settings:
|
||||
@@ -175,18 +151,18 @@ volumes:
|
||||
- name: dockersock
|
||||
host:
|
||||
path: /var/run/docker.sock
|
||||
- name: yarnrc
|
||||
- name: npmrc
|
||||
host:
|
||||
path: /volume1/docker/.yarnrc.yml
|
||||
path: /volume1/docker/grow/labs-auth/.npmrc
|
||||
|
||||
# depends_on:
|
||||
# - Build Pipeline
|
||||
depends_on:
|
||||
- Build Pipeline
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
# event:
|
||||
# - tag
|
||||
event:
|
||||
- tag
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
@@ -196,15 +172,14 @@ name: Deploy Pipeline
|
||||
workspace:
|
||||
path: /drone/grow
|
||||
|
||||
# image_pull_secrets:
|
||||
# - from_secret: gitea_token
|
||||
|
||||
steps:
|
||||
- name: Deploy Container
|
||||
image: docker
|
||||
privileged: true
|
||||
commands:
|
||||
- docker compose pull
|
||||
- docker compose build --no-cache
|
||||
- docker compose down
|
||||
- docker compose up --wait
|
||||
volumes:
|
||||
- name: env
|
||||
@@ -241,11 +216,11 @@ volumes:
|
||||
host:
|
||||
path: /volume1/docker/labs/grow-auth/.env
|
||||
|
||||
# depends_on:
|
||||
# - Build Pipeline
|
||||
depends_on:
|
||||
- Build Pipeline
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
# event:
|
||||
# - tag
|
||||
event:
|
||||
- tag
|
||||
|
||||
3
.npmrc
3
.npmrc
@@ -1,3 +0,0 @@
|
||||
@mifi:registry=https://git.mifi.dev/api/packages/mifi/npm
|
||||
//git.mifi.dev/api/packages/mifi/npm/:_authToken=${REGISTRY_TOKEN}
|
||||
@mifi/grow:registry=https://git.mifi.dev
|
||||
@@ -2,7 +2,7 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
auth-service_mongo:
|
||||
container_name: ${CONTAINER_PREFIX}${SERVICE_NAME}_${DB_TYPE}
|
||||
container_name: ${CONTAINER_PREFIX}-${SERVICE_NAME}_${DB_TYPE}
|
||||
environment:
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
- MONGO_INITDB_ROOT_USERNAME=${DB_USER}
|
||||
@@ -22,7 +22,7 @@ services:
|
||||
- ROUTE_PREFIX=${ROUTE_PREFIX}
|
||||
- LOGIN_ROUTE=${LOGIN_ROUTE}
|
||||
- RESET_ROUTE=${RESET_ROUTE}
|
||||
- DB_HOST=${CONTAINER_PREFIX}-${SERVICE_NAME}_${DB_TYPE}
|
||||
- DB_HOST=${SERVICE_NAME}_${DB_TYPE}
|
||||
- DB_USER=${DB_USER}
|
||||
- DB_PASS=${DB_PASS}
|
||||
- DB_NAME=${DB_NAME}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mifi/auth",
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.11",
|
||||
"author": "mifi (Mike Fitzpatrick)",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user