Still can't publish or deploy...

This commit is contained in:
2023-05-04 11:41:16 -04:00
parent 2814c6820b
commit 2daa33f3ac

View File

@@ -1,94 +1,94 @@
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
@@ -102,10 +102,7 @@ steps:
- name: Build Service - name: Build Service
image: node:latest image: node:latest
commands: commands:
- cp /drone/grow/package.json .
- cp /drone/grow/yarn.lock .
- yarn install --frozen-lockfile --production - yarn install --frozen-lockfile --production
- cp -r /drone/grow/dist .
- yarn build:production - yarn build:production
- name: Publish NPM - name: Publish NPM
image: plugins/npm image: plugins/npm
@@ -174,8 +171,8 @@ 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: /.env