Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
ad9ffc89b5
|
|||
|
f482750d08
|
|||
|
7b77df0c4c
|
|||
|
8ee5d627aa
|
|||
|
775dd60b56
|
|||
|
b3365607c5
|
|||
|
96058995be
|
55
.drone.yml
55
.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,13 +57,11 @@ steps:
|
||||
- success
|
||||
- failure
|
||||
|
||||
depends_on:
|
||||
- Test Pipeline
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- pull_request
|
||||
- push
|
||||
|
||||
---
|
||||
@@ -100,7 +74,7 @@ workspace:
|
||||
path: /drone/grow
|
||||
|
||||
steps:
|
||||
- name: Build Service
|
||||
- name: Build Package
|
||||
image: node:latest
|
||||
commands:
|
||||
- yarn install
|
||||
@@ -117,7 +91,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,15 +150,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
|
||||
- Test Pipeline
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- tag
|
||||
|
||||
---
|
||||
@@ -199,7 +177,9 @@ steps:
|
||||
image: docker
|
||||
privileged: true
|
||||
commands:
|
||||
- docker compose pull
|
||||
- docker compose build --no-cache
|
||||
- docker compose rm --stop .
|
||||
- docker compose up --wait
|
||||
volumes:
|
||||
- name: env
|
||||
@@ -237,8 +217,11 @@ volumes:
|
||||
path: /volume1/docker/labs/grow-auth/.env
|
||||
|
||||
depends_on:
|
||||
- Build Pipeline
|
||||
- Test Pipeline
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- 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
|
||||
@@ -23,5 +23,4 @@ WORKDIR /home/node/app
|
||||
COPY package*.json ./
|
||||
RUN yarn install --frozen-lockfile --production
|
||||
COPY --from=0 /home/node/app/dist .
|
||||
EXPOSE 80
|
||||
CMD ["node","server/index.js"]
|
||||
|
||||
@@ -46,6 +46,8 @@ services:
|
||||
- docknet
|
||||
restart: unless-stopped
|
||||
image: node
|
||||
links:
|
||||
- auth-service_mongo:${CONTAINER_PREFIX}-${SERVICE_NAME}_${DB_TYPE}
|
||||
depends_on:
|
||||
- auth-service_mongo
|
||||
networks:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mifi/auth",
|
||||
"version": "0.0.9",
|
||||
"version": "0.0.15",
|
||||
"author": "mifi (Mike Fitzpatrick)",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user