Compare commits
36 Commits
0.0.5
...
d879de2a6b
| Author | SHA1 | Date | |
|---|---|---|---|
|
d879de2a6b
|
|||
|
34e3eb04af
|
|||
|
ff5f88588e
|
|||
|
ac5c09b7da
|
|||
|
d1b42fe79f
|
|||
|
3d32c77bd1
|
|||
|
8e077810f5
|
|||
|
5e0621e37d
|
|||
|
e6f9f9b523
|
|||
|
1c5fdabca6
|
|||
|
7bbb4bb036
|
|||
|
159f87d07e
|
|||
|
244db86113
|
|||
|
00d9a4f734
|
|||
|
b7a3c12eff
|
|||
|
8e263d7ace
|
|||
|
641cbcfd47
|
|||
|
8af84d42e5
|
|||
|
d31a47f46c
|
|||
|
ddb8ad0948
|
|||
|
73cb0c23f5
|
|||
|
59738f5711
|
|||
|
f3ff19098b
|
|||
|
8bc852fa7d
|
|||
|
8e06b98695
|
|||
|
809255baa6
|
|||
|
21e80ca883
|
|||
|
cfb7c7e453
|
|||
|
82498e7714
|
|||
|
87a611459a
|
|||
|
0a09208766
|
|||
|
99ce364dc4
|
|||
|
2daa33f3ac
|
|||
|
2814c6820b
|
|||
|
d9cafe009d
|
|||
|
d011f15136
|
264
.drone.yml
264
.drone.yml
@@ -1,99 +1,100 @@
|
|||||||
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
|
||||||
|
group: publish
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
path: /drone/grow
|
path: /drone/grow
|
||||||
@@ -102,33 +103,33 @@ steps:
|
|||||||
- name: Build Service
|
- name: Build Service
|
||||||
image: node:latest
|
image: node:latest
|
||||||
commands:
|
commands:
|
||||||
- cp /drone/grow/package.json ./
|
- yarn install
|
||||||
- cp /drone/grow/yarn.lock ./
|
|
||||||
- yarn install --frozen-lockfile
|
|
||||||
- cp -r /drone/grow/* .
|
|
||||||
- yarn build
|
- yarn build
|
||||||
|
- name: NPM Auth
|
||||||
|
image: robertstettner/drone-npm-auth
|
||||||
|
settings:
|
||||||
|
username:
|
||||||
|
from_secret: registry_username
|
||||||
|
password:
|
||||||
|
from_secret: registry_password
|
||||||
|
email: mike@fitz.guru
|
||||||
|
registry: https://git.mifi.dev
|
||||||
|
scope: mifi
|
||||||
- name: Publish NPM
|
- name: Publish NPM
|
||||||
image: plugins/npm
|
image: plugins/npm
|
||||||
|
failure: ignore
|
||||||
settings:
|
settings:
|
||||||
username: mifi
|
username:
|
||||||
registry: git.mifi.dev
|
from_secret: registry_username
|
||||||
|
password:
|
||||||
|
from_secret: registry_password
|
||||||
|
registry: https://git.mifi.dev
|
||||||
token:
|
token:
|
||||||
- from_secret: gitea_token
|
- from_secret: gitea_token
|
||||||
- name: Publish Image
|
|
||||||
image: plugins/docker
|
|
||||||
settings:
|
|
||||||
auto_tag: true
|
|
||||||
squash: true
|
|
||||||
repo: git.mifi.dev/mifi/auth
|
|
||||||
registry: git.mifi.dev
|
|
||||||
ssh-agent-key:
|
|
||||||
from_secret: gitea_token
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: yarnrc
|
||||||
Path: /var/run/docker.sock
|
path: /drone/grow/.yarnrc.yml
|
||||||
- name: dockerconfig
|
- name: Report NPM Publish Status
|
||||||
Path: /.docker/config.json
|
|
||||||
- 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
|
||||||
@@ -136,7 +137,40 @@ steps:
|
|||||||
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 }} - New tagged docker image release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
"text": "[{{ repo.name }} - New npm package release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
|
"username":"DroneBot"
|
||||||
|
}
|
||||||
|
when:
|
||||||
|
status:
|
||||||
|
- success
|
||||||
|
- failure
|
||||||
|
- name: Publish Image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
auto_tag: true
|
||||||
|
squash: true
|
||||||
|
repo: git.mifi.dev/mifi/auth
|
||||||
|
registry: git.mifi.dev
|
||||||
|
username:
|
||||||
|
from_secret: registry_username
|
||||||
|
password:
|
||||||
|
from_secret: registry_password
|
||||||
|
ssh-agent-key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
volumes:
|
||||||
|
- name: dockersock
|
||||||
|
Path: /var/run/docker.sock
|
||||||
|
- name: dockerconfig
|
||||||
|
Path: /drone/grow/.docker/config.json
|
||||||
|
- name: Report Image Publish Status
|
||||||
|
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 }} - New docker image release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
|
||||||
"username":"DroneBot"
|
"username":"DroneBot"
|
||||||
}
|
}
|
||||||
when:
|
when:
|
||||||
@@ -145,19 +179,24 @@ steps:
|
|||||||
- failure
|
- failure
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: yarnrc
|
||||||
|
host:
|
||||||
|
path: /Volume1/docker/.yarnrc.yml
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
- name: dockerconfig
|
- name: dockerconfig
|
||||||
|
host:
|
||||||
path: /volume1/docker/labs/grow-auth/dockerconfig.json
|
path: /volume1/docker/labs/grow-auth/dockerconfig.json
|
||||||
|
|
||||||
depends_on:
|
# depends_on:
|
||||||
- Build Pipeline
|
# - Build Pipeline
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
# event:
|
||||||
- tag
|
# - tag
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
@@ -174,15 +213,15 @@ steps:
|
|||||||
- name: Deploy Container
|
- name: Deploy Container
|
||||||
image: docker
|
image: docker
|
||||||
commands:
|
commands:
|
||||||
- compose build .
|
- docker compose build
|
||||||
- compose up --wait
|
- docker compose up --wait
|
||||||
volumes:
|
volumes:
|
||||||
- name: env
|
- name: env
|
||||||
path: /.env
|
path: /drone/grow/.env
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
Path: /var/run/docker.sock
|
Path: /var/run/docker.sock
|
||||||
- name: dockerconfig
|
- name: dockerconfig
|
||||||
Path: /.docker/config.json
|
Path: /drone/grow/.docker/config.json
|
||||||
- name: Send Status Notifications
|
- name: Send Status Notifications
|
||||||
image: plugins/webhook
|
image: plugins/webhook
|
||||||
settings:
|
settings:
|
||||||
@@ -201,17 +240,20 @@ steps:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: env
|
- name: env
|
||||||
|
host:
|
||||||
path: /volume1/docker/labs/grow-auth/.env
|
path: /volume1/docker/labs/grow-auth/.env
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
|
host:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
- name: dockerconfig
|
- name: dockerconfig
|
||||||
|
host:
|
||||||
path: /volume1/docker/labs/grow-auth/dockerconfig.json
|
path: /volume1/docker/labs/grow-auth/dockerconfig.json
|
||||||
|
|
||||||
depends_on:
|
# depends_on:
|
||||||
- Build Pipeline
|
# - Build Pipeline
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
event:
|
# event:
|
||||||
- tag
|
# - tag
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mifi/auth",
|
"name": "@mifi/auth",
|
||||||
"version": "0.0.4",
|
"version": "0.0.7",
|
||||||
"author": "mifi (Mike Fitzpatrick)",
|
"author": "mifi (Mike Fitzpatrick)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -80,5 +80,6 @@
|
|||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.mifi.dev/mifi/auth.git"
|
"url": "https://git.mifi.dev/mifi/auth.git"
|
||||||
}
|
},
|
||||||
|
"registry": "https://git.mifi.dev"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user