Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
8ee5d627aa
|
|||
|
775dd60b56
|
|||
|
b3365607c5
|
|||
|
96058995be
|
54
.drone.yml
54
.drone.yml
@@ -10,23 +10,19 @@ steps:
|
|||||||
image: node:latest
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- yarn install
|
- yarn install
|
||||||
|
|
||||||
- name: Code Style Checks
|
- name: Code Style Checks
|
||||||
image: node:latest
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- yarn prettier
|
- yarn prettier
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
image: node:latest
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- yarn lint
|
- yarn lint
|
||||||
|
|
||||||
- name: Unit Tests
|
- name: Unit Tests
|
||||||
image: node:latest
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- yarn test
|
- yarn test
|
||||||
|
- name: Send Test Status Notification
|
||||||
- name: Send Status Notification
|
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||||
@@ -41,34 +37,14 @@ steps:
|
|||||||
status:
|
status:
|
||||||
- success
|
- success
|
||||||
- failure
|
- 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
|
- name: Build
|
||||||
image: node:latest
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- yarn build
|
- yarn build
|
||||||
|
- name: Send Build Status Notifications
|
||||||
- name: Send Status Notifications
|
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||||
content_type: application/json
|
content_type: application/json
|
||||||
template: |
|
template: |
|
||||||
{
|
{
|
||||||
@@ -81,14 +57,13 @@ steps:
|
|||||||
- success
|
- success
|
||||||
- failure
|
- failure
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- Test Pipeline
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
event:
|
||||||
|
- pull_request
|
||||||
- push
|
- push
|
||||||
|
- tag
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@@ -100,7 +75,7 @@ workspace:
|
|||||||
path: /drone/grow
|
path: /drone/grow
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Build Service
|
- name: Build Package
|
||||||
image: node:latest
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- yarn install
|
- yarn install
|
||||||
@@ -117,7 +92,8 @@ steps:
|
|||||||
token:
|
token:
|
||||||
- from_secret: gitea_token
|
- from_secret: gitea_token
|
||||||
volumes:
|
volumes:
|
||||||
- name: yarnrc
|
- name: npmrc
|
||||||
|
path: /drone/grow/.npmrc
|
||||||
- name: Report NPM Publish Status
|
- name: Report NPM Publish Status
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
@@ -175,14 +151,16 @@ volumes:
|
|||||||
- name: dockersock
|
- name: dockersock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
- name: yarnrc
|
- name: npmrc
|
||||||
host:
|
host:
|
||||||
path: /volume1/docker/.yarnrc.yml
|
path: /volume1/docker/grow/labs-auth/.npmrc
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- Build Pipeline
|
- Test Pipeline
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
@@ -199,7 +177,9 @@ steps:
|
|||||||
image: docker
|
image: docker
|
||||||
privileged: true
|
privileged: true
|
||||||
commands:
|
commands:
|
||||||
|
- docker compose pull
|
||||||
- docker compose build --no-cache
|
- docker compose build --no-cache
|
||||||
|
- docker compose down
|
||||||
- docker compose up --wait
|
- docker compose up --wait
|
||||||
volumes:
|
volumes:
|
||||||
- name: env
|
- name: env
|
||||||
@@ -237,8 +217,10 @@ volumes:
|
|||||||
path: /volume1/docker/labs/grow-auth/.env
|
path: /volume1/docker/labs/grow-auth/.env
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- Build Pipeline
|
- Test Pipeline
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
event:
|
event:
|
||||||
- tag
|
- 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=${NPM_TOKEN}
|
|
||||||
@mifi/grow:registry=https://git.mifi.dev
|
|
||||||
@@ -22,7 +22,7 @@ services:
|
|||||||
- ROUTE_PREFIX=${ROUTE_PREFIX}
|
- ROUTE_PREFIX=${ROUTE_PREFIX}
|
||||||
- LOGIN_ROUTE=${LOGIN_ROUTE}
|
- LOGIN_ROUTE=${LOGIN_ROUTE}
|
||||||
- RESET_ROUTE=${RESET_ROUTE}
|
- RESET_ROUTE=${RESET_ROUTE}
|
||||||
- DB_HOST=${CONTAINER_PREFIX}-${SERVICE_NAME}_${DB_TYPE}
|
- DB_HOST=${SERVICE_NAME}_${DB_TYPE}
|
||||||
- DB_USER=${DB_USER}
|
- DB_USER=${DB_USER}
|
||||||
- DB_PASS=${DB_PASS}
|
- DB_PASS=${DB_PASS}
|
||||||
- DB_NAME=${DB_NAME}
|
- DB_NAME=${DB_NAME}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mifi/auth",
|
"name": "@mifi/auth",
|
||||||
"version": "0.0.9",
|
"version": "0.0.12",
|
||||||
"author": "mifi (Mike Fitzpatrick)",
|
"author": "mifi (Mike Fitzpatrick)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user