Compare commits
9 Commits
1a717cd83e
...
0.0.10
| Author | SHA1 | Date | |
|---|---|---|---|
|
b3365607c5
|
|||
|
96058995be
|
|||
|
1d43b78590
|
|||
|
243682758a
|
|||
|
695c4d84e8
|
|||
|
25908dd9d7
|
|||
|
34a28b8134
|
|||
|
7e1f9a1f33
|
|||
|
f0ba205a58
|
193
.drone.yml
193
.drone.yml
@@ -1,96 +1,69 @@
|
|||||||
# kind: pipeline
|
kind: pipeline
|
||||||
# type: docker
|
type: docker
|
||||||
# name: Test Pipeline
|
name: Test Pipeline
|
||||||
|
|
||||||
# workspace:
|
workspace:
|
||||||
# path: /drone/grow
|
path: /drone/grow
|
||||||
|
|
||||||
# steps:
|
steps:
|
||||||
# - name: yarn install
|
- name: yarn install
|
||||||
# image: node:latest
|
image: node:latest
|
||||||
# commands:
|
commands:
|
||||||
# - yarn install
|
- 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 Test Status Notification
|
||||||
|
image: plugins/webhook
|
||||||
|
settings:
|
||||||
|
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||||
|
content_type: application/json
|
||||||
|
template: |
|
||||||
|
{
|
||||||
|
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||||
|
"text": "[{{ repo.name }} - Build # {{ build.number }}] Code Quality Checks {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
|
"username":"DroneBot"
|
||||||
|
}
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
- name: Build
|
||||||
|
image: node:latest
|
||||||
|
commands:
|
||||||
|
- yarn build
|
||||||
|
- name: Send Build Status Notifications
|
||||||
|
image: plugins/webhook
|
||||||
|
settings:
|
||||||
|
urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
||||||
|
content_type: application/json
|
||||||
|
template: |
|
||||||
|
{
|
||||||
|
"icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
||||||
|
"text": "[{{ repo.name }} - Build # {{ build.number }}] Build package {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
|
"username":"DroneBot"
|
||||||
|
}
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
|
||||||
# - name: Code Style Checks
|
trigger:
|
||||||
# image: node:latest
|
event:
|
||||||
# commands:
|
- pull_request
|
||||||
# - yarn prettier
|
- push
|
||||||
|
- tag
|
||||||
|
|
||||||
# - name: Lint
|
---
|
||||||
# image: node:latest
|
|
||||||
# commands:
|
|
||||||
# - yarn lint
|
|
||||||
|
|
||||||
# - name: Unit Tests
|
|
||||||
# image: node:latest
|
|
||||||
# commands:
|
|
||||||
# - yarn test
|
|
||||||
|
|
||||||
# - name: Send Status Notification
|
|
||||||
# image: plugins/webhook
|
|
||||||
# settings:
|
|
||||||
# urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r
|
|
||||||
# content_type: application/json
|
|
||||||
# template: |
|
|
||||||
# {
|
|
||||||
# "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
|
||||||
# "text": "[{{ repo.name }} - Build # {{ build.number }}] Code Quality Checks {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
|
||||||
# "username":"DroneBot"
|
|
||||||
# }
|
|
||||||
# when:
|
|
||||||
# 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
|
|
||||||
# image: plugins/webhook
|
|
||||||
# settings:
|
|
||||||
# urls: https://lab.mifi.dev/hooks/ccw34hdf7tgbjmzp96nptn938r
|
|
||||||
# content_type: application/json
|
|
||||||
# template: |
|
|
||||||
# {
|
|
||||||
# "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png",
|
|
||||||
# "text": "[{{ repo.name }} - Build # {{ build.number }}] Build package {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
|
||||||
# "username":"DroneBot"
|
|
||||||
# }
|
|
||||||
# when:
|
|
||||||
# status:
|
|
||||||
# - success
|
|
||||||
# - failure
|
|
||||||
|
|
||||||
# depends_on:
|
|
||||||
# - Test Pipeline
|
|
||||||
|
|
||||||
# trigger:
|
|
||||||
# branch:
|
|
||||||
# - main
|
|
||||||
# event:
|
|
||||||
# - push
|
|
||||||
|
|
||||||
# ---
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: Publish Pipeline
|
name: Publish Pipeline
|
||||||
@@ -117,8 +90,8 @@ steps:
|
|||||||
token:
|
token:
|
||||||
- from_secret: gitea_token
|
- from_secret: gitea_token
|
||||||
volumes:
|
volumes:
|
||||||
- name: yarnrc
|
- name: npmrc
|
||||||
path: /drone/grow/.yarnrc.yml
|
path: /drone/grow/.npmrc
|
||||||
- name: Report NPM Publish Status
|
- name: Report NPM Publish Status
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
@@ -140,6 +113,7 @@ steps:
|
|||||||
auto_tag: true
|
auto_tag: true
|
||||||
squash: true
|
squash: true
|
||||||
repo: git.mifi.dev/mifi/auth
|
repo: git.mifi.dev/mifi/auth
|
||||||
|
context: mifi
|
||||||
registry: git.mifi.dev
|
registry: git.mifi.dev
|
||||||
username:
|
username:
|
||||||
from_secret: registry_username
|
from_secret: registry_username
|
||||||
@@ -169,24 +143,24 @@ steps:
|
|||||||
- failure
|
- failure
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: yarnrc
|
- name: dockerconfig
|
||||||
host:
|
host:
|
||||||
path: /Volume1/docker/.yarnrc.yml
|
path: /volume1/docker/dockerconfig.json
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
- name: dockerconfig
|
- name: npmrc
|
||||||
host:
|
host:
|
||||||
path: /volume1/docker/labs/grow-auth/dockerconfig.json
|
path: /volume1/docker/grow/labs-auth/.npmrc
|
||||||
|
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - Build Pipeline
|
- Build Pipeline
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
# event:
|
event:
|
||||||
# - tag
|
- tag
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@@ -196,15 +170,12 @@ name: Deploy Pipeline
|
|||||||
workspace:
|
workspace:
|
||||||
path: /drone/grow
|
path: /drone/grow
|
||||||
|
|
||||||
# image_pull_secrets:
|
|
||||||
# - from_secret: gitea_token
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Deploy Container
|
- name: Deploy Container
|
||||||
image: docker
|
image: docker
|
||||||
privileged: true
|
privileged: true
|
||||||
commands:
|
commands:
|
||||||
- docker compose build
|
- docker compose build --no-cache
|
||||||
- docker compose up --wait
|
- docker compose up --wait
|
||||||
volumes:
|
volumes:
|
||||||
- name: env
|
- name: env
|
||||||
@@ -231,21 +202,21 @@ steps:
|
|||||||
- failure
|
- failure
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: env
|
- name: dockerconfig
|
||||||
host:
|
host:
|
||||||
path: /volume1/docker/labs/grow-auth/.env
|
path: /volume1/docker/dockerconfig.json
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
host:
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
- name: dockerconfig
|
- name: env
|
||||||
host:
|
host:
|
||||||
path: /volume1/docker/labs/grow-auth/dockerconfig.json
|
path: /volume1/docker/labs/grow-auth/.env
|
||||||
|
|
||||||
# depends_on:
|
depends_on:
|
||||||
# - Build Pipeline
|
- Build Pipeline
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
# event:
|
event:
|
||||||
# - tag
|
- tag
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ version: '3.8'
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
auth-service_mongo:
|
auth-service_mongo:
|
||||||
container_name: ${CONTAINER_PREFIX}${SERVICE_NAME}_${DB_TYPE}
|
container_name: ${CONTAINER_PREFIX}-${SERVICE_NAME}_${DB_TYPE}
|
||||||
environment:
|
environment:
|
||||||
- ALLOW_EMPTY_PASSWORD=yes
|
- ALLOW_EMPTY_PASSWORD=yes
|
||||||
- MONGO_INITDB_ROOT_USERNAME=${DB_USER}
|
- MONGO_INITDB_ROOT_USERNAME=${DB_USER}
|
||||||
@@ -44,9 +44,6 @@ services:
|
|||||||
- 'traefik.http.services.gitea.loadbalancer.server.port=${PORT}'
|
- 'traefik.http.services.gitea.loadbalancer.server.port=${PORT}'
|
||||||
networks:
|
networks:
|
||||||
- docknet
|
- docknet
|
||||||
volumes:
|
|
||||||
- '/Volume1/docker/.yarnrc.yml:/.yarnrc.yml'
|
|
||||||
- '/Volume1/docker/labs/grow-auth/.env:/.env'
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: node
|
image: node
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mifi/auth",
|
"name": "@mifi/auth",
|
||||||
"version": "0.0.7",
|
"version": "0.0.10",
|
||||||
"author": "mifi (Mike Fitzpatrick)",
|
"author": "mifi (Mike Fitzpatrick)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user