7 Commits

Author SHA1 Message Date
1d43b78590 More...
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-04 23:12:09 -04:00
243682758a clean-up
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-04 23:07:48 -04:00
695c4d84e8 Add npmrc, update version, pipeline tweaks - re-enable pipeline in full
Some checks are pending
continuous-integration/drone/push Build is running
2023-05-04 23:05:49 -04:00
25908dd9d7 Failing on the same old errors...
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-04 22:18:19 -04:00
34a28b8134 No cache
Some checks failed
continuous-integration/drone/push Build encountered an error
2023-05-04 22:08:27 -04:00
7e1f9a1f33 So close I can taste it...
Some checks failed
continuous-integration/drone/push Build encountered an error
2023-05-04 22:00:41 -04:00
f0ba205a58 Closer? that was a new error...
Some checks failed
continuous-integration/drone/push Build encountered an error
2023-05-04 21:51:54 -04:00
4 changed files with 101 additions and 108 deletions

View File

@@ -1,96 +1,96 @@
# 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 - 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 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
# content_type: application/json content_type: application/json
# template: | template: |
# { {
# "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", "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}}", "text": "[{{ repo.name }} - Build # {{ build.number }}] Code Quality Checks {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
# "username":"DroneBot" "username":"DroneBot"
# } }
# when: when:
# status: status:
# - success - success
# - failure - failure
# trigger: trigger:
# event: event:
# - push - push
# --- ---
# kind: pipeline kind: pipeline
# type: docker type: docker
# name: Build Pipeline name: Build 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: Build - name: Build
# image: node:latest image: node:latest
# commands: commands:
# - yarn build - yarn build
# - name: Send 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/ccw34hdf7tgbjmzp96nptn938r
# content_type: application/json content_type: application/json
# template: | template: |
# { {
# "icon_url":"https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/120/apple/198/freezing-face_1f976.png", "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}}", "text": "[{{ repo.name }} - Build # {{ build.number }}] Build package {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
# "username":"DroneBot" "username":"DroneBot"
# } }
# when: when:
# status: status:
# - success - success
# - failure - failure
# depends_on: depends_on:
# - Test Pipeline - Test Pipeline
# trigger: trigger:
# branch: branch:
# - main - main
# event: event:
# - push - push
# --- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: Publish Pipeline name: Publish Pipeline
@@ -118,7 +118,6 @@ steps:
- from_secret: gitea_token - from_secret: gitea_token
volumes: volumes:
- name: yarnrc - name: yarnrc
path: /drone/grow/.yarnrc.yml
- name: Report NPM Publish Status - name: Report NPM Publish Status
image: plugins/webhook image: plugins/webhook
settings: settings:
@@ -140,6 +139,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 +169,22 @@ 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: yarnrc
host: host:
path: /volume1/docker/labs/grow-auth/dockerconfig.json path: /volume1/docker/.yarnrc.yml
# depends_on: depends_on:
# - Build Pipeline - Build Pipeline
trigger: trigger:
branch: event:
- main - tag
# event:
# - tag
--- ---
kind: pipeline kind: pipeline
@@ -196,15 +194,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 +226,19 @@ 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: event:
- main - tag
# event:
# - tag

3
.npmrc Normal file
View File

@@ -0,0 +1,3 @@
@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

View File

@@ -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:

View File

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