Cleanup and applied learnings
Some checks failed
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build was killed

This commit is contained in:
2023-05-24 13:07:42 -04:00
parent f2dce58f5e
commit 6ef8c553ce
8 changed files with 954 additions and 38 deletions

View File

@@ -7,9 +7,15 @@ workspace:
steps:
- name: yarn install
image: node:latest
image: node:20-bullseye-slim
environment:
YARN_VERSION: 3.5.0
commands:
- yarn set version stable
- yarn install
volumes:
- name: yarnrc
path: /drone/auth/.yarnrc.yml
- name: Code Style Checks
image: node:latest
commands:
@@ -40,7 +46,7 @@ steps:
- name: Build
image: node:latest
commands:
- yarn build
- yarn build:production
- name: Send Build Status Notifications
image: plugins/webhook
settings:
@@ -57,6 +63,11 @@ steps:
- success
- failure
volumes:
- name: yarnrc
host:
path: /volume1/docker/.yarnrc.yml
trigger:
branch:
- main
@@ -74,22 +85,24 @@ workspace:
steps:
- name: Build Package
image: node:latest
commands:
- yarn install
- yarn build
- name: Publish NPM
image: node:20-alpine
failure: ignore
image: node:20-bullseye-slim
environment:
NPM_TOKEN:
from_secret: reg_token
YARN_VERSION: 3.5.0
commands:
- yarn publish -t ${DRONE_TAG}
- yarn set version stable
- yarn install
volumes:
- name: yarnrc
path: /drone/auth/.yarnrc.yml
- name: Publish NPM
image: node:20-bullseye-slim
commands:
- yarn npm publish
volumes:
- name: npmrc
path: /drone/auth/.npmrc
secrets: [reg_token]
- name: yarnrc
path: /drone/auth/.yarnrc.yml
- name: Report NPM Publish Status
image: plugins/webhook
settings:
@@ -111,7 +124,6 @@ steps:
auto_tag: true
repo: git.mifi.dev/mifi/auth-service
registry: git.mifi.dev
debug: true
ssh-agent-key:
from_secret: reg_token
username: <token>
@@ -144,6 +156,9 @@ volumes:
- name: npmrc
host:
path: /volume1/docker/beethoven/labs-auth/.npmrc
- name: yarnrc
host:
path: /volume1/docker/.yarnrc.yml
depends_on:
- Test Pipeline