mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-04-24 16:53:37 +00:00
Project dockerfile & added build as ci step
This commit is contained in:
13
.drone.yml
13
.drone.yml
@@ -8,14 +8,14 @@ platform:
|
||||
arch: amd64
|
||||
|
||||
steps:
|
||||
- name: frontend install
|
||||
- name: Frontend install
|
||||
image: node:18.2.0
|
||||
commands:
|
||||
- node -v
|
||||
- yarn --version
|
||||
- yarn
|
||||
|
||||
- name: frontend build
|
||||
- name: Frontend build
|
||||
image: node:18.2.0
|
||||
commands:
|
||||
- node -v
|
||||
@@ -23,12 +23,19 @@ steps:
|
||||
- yarn
|
||||
- yarn build
|
||||
|
||||
- name: run eslint on project files
|
||||
- name: Lint project using eslint
|
||||
image: node:18.2.0
|
||||
commands:
|
||||
- yarn lint
|
||||
failure: ignore
|
||||
|
||||
- name: Build and tag docker image
|
||||
image: node:18.2.0
|
||||
commands:
|
||||
- docker build -t seasoned .
|
||||
- docker tag seasoned kevinmidboe/seasoned
|
||||
failure: ignore
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-ssh
|
||||
pull: true
|
||||
|
||||
Reference in New Issue
Block a user