From 2daa33f3ac15664674b000f02752f43dd0c9a979 Mon Sep 17 00:00:00 2001 From: mifi Date: Thu, 4 May 2023 11:41:16 -0400 Subject: [PATCH] Still can't publish or deploy... --- .drone.yml | 161 ++++++++++++++++++++++++++--------------------------- 1 file changed, 79 insertions(+), 82 deletions(-) diff --git a/.drone.yml b/.drone.yml index 767644b..ad73f91 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,94 +1,94 @@ -kind: pipeline -type: docker -name: Test Pipeline +# kind: pipeline +# type: docker +# name: Test Pipeline -workspace: - path: /drone/grow +# workspace: +# path: /drone/grow -steps: -- name: yarn install - image: node:latest - commands: - - yarn install +# steps: +# - name: yarn install +# image: node:latest +# commands: +# - yarn install -- name: Code Style Checks - image: node:latest - commands: - - yarn prettier +# - name: Code Style Checks +# image: node:latest +# commands: +# - yarn prettier -- name: Lint - image: node:latest - commands: - - yarn lint +# - name: Lint +# image: node:latest +# commands: +# - yarn lint -- name: Unit Tests - image: node:latest - commands: - - yarn test +# - name: Unit Tests +# image: node:latest +# commands: +# - yarn test -- name: Send Status Notification - image: plugins/webhook - settings: - urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r - 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 }} - Build # {{ build.number }}] Code Quality Checks {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}", - "username":"DroneBot" - } - when: - status: - - success - - failure +# - name: Send Status Notification +# image: plugins/webhook +# settings: +# urls: https://lab.mifi.dev/hooks/9p65zpagctgkmndo8nwwm4199r +# 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 }} - Build # {{ build.number }}] Code Quality Checks {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}", +# "username":"DroneBot" +# } +# when: +# status: +# - success +# - failure -trigger: - event: - - push +# trigger: +# event: +# - push ---- -kind: pipeline -type: docker -name: Build Pipeline +# --- +# kind: pipeline +# type: docker +# name: Build Pipeline -workspace: - path: /drone/grow +# workspace: +# path: /drone/grow -steps: -- name: yarn install - image: node:latest - commands: - - yarn install +# steps: +# - name: yarn install +# image: node:latest +# commands: +# - yarn install -- name: Build - image: node:latest - commands: - - yarn build +# - name: Build +# image: node:latest +# commands: +# - yarn build -- 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 }} - Build # {{ build.number }}] Build package {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}", - "username":"DroneBot" - } - when: - status: - - success - - failure +# - 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 }} - Build # {{ build.number }}] Build package {{ build.status }} {{#success build.status}}:tada:{{else}}:poop:{{/success}}", +# "username":"DroneBot" +# } +# when: +# status: +# - success +# - failure -depends_on: - - Test Pipeline +# depends_on: +# - Test Pipeline -trigger: - branch: - - main - event: - - push +# trigger: +# branch: +# - main +# event: +# - push --- kind: pipeline @@ -102,10 +102,7 @@ steps: - name: Build Service image: node:latest commands: - - cp /drone/grow/package.json . - - cp /drone/grow/yarn.lock . - yarn install --frozen-lockfile --production - - cp -r /drone/grow/dist . - yarn build:production - name: Publish NPM image: plugins/npm @@ -174,8 +171,8 @@ steps: - name: Deploy Container image: docker commands: - - compose build . - - compose up --wait + - docker compose build + - docker compose up --wait volumes: - name: env path: /.env