Up version / publish

This commit is contained in:
2023-05-03 22:37:21 -04:00
parent aa2611b68d
commit ecfa12154d
2 changed files with 56 additions and 2 deletions

View File

@@ -98,6 +98,60 @@ name: Deploy Pipeline
workspace: workspace:
path: /drone/grow path: /drone/grow
steps:
- name: Build Container
image: node:latest
commands:
- cp /drone/grow/package.json ./
- cp /drone/grow/yarn.lock ./
- yarn install --frozen-lockfile
- cp -r /drone/grow/* .
- yarn build
---
kind: pipeline
type: docker
name: Deploy Pipeline
workspace:
path: /drone/grow
steps:
- name: docker
image: plugins/docker
settings:
auto_tag: true
repo: git.mifi.dev/mifi/auth
registry: git.mifi.dev
- 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 }} - New tagged release {{tag}} from # {{ build.number }}] Deploy {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}",
"username":"DroneBot"
}
when:
status:
- success
- failure
image_pull_secrets:
- from_secret: gitea_token
depends_on:
- Build Pipeline
trigger:
branch:
- main
event:
- tag
steps: steps:
- name: Build Container - name: Build Container
image: node:latest image: node:latest
@@ -148,4 +202,4 @@ trigger:
branch: branch:
- main - main
event: event:
- push - tag

View File

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