feature-docker-build (#6)
Reviewed-on: https://git.t000-n.de/tbehrendt/ts3gotify/pulls/6
This commit is contained in:
48
.drone.yml
48
.drone.yml
@@ -1,15 +1,57 @@
|
||||
---
|
||||
kind: pipeline
|
||||
name: Testing
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: spellcheck
|
||||
- name: prep
|
||||
image: node:18.12.1
|
||||
volumes:
|
||||
- name: modules
|
||||
path: /drone/rsc/node_modules
|
||||
commands:
|
||||
- npm install
|
||||
|
||||
- name: spellcheck
|
||||
image: node:18.12.1
|
||||
depends_on:
|
||||
- prep
|
||||
volumes:
|
||||
- name: modules
|
||||
path: /drone/rsc/node_modules
|
||||
commands:
|
||||
- npm run check:spell
|
||||
- name: lint
|
||||
image: node:18.12.1
|
||||
depends_on:
|
||||
- prep
|
||||
volumes:
|
||||
- name: modules
|
||||
path: /drone/rsc/node_modules
|
||||
commands:
|
||||
- npm install
|
||||
- npm run check:code
|
||||
|
||||
- name: build-push
|
||||
image: plugins/docker
|
||||
depends_on:
|
||||
- spellcheck
|
||||
- lint
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
settings:
|
||||
registry: git.t000-n.de
|
||||
username:
|
||||
from_secret: docker-registry-login
|
||||
password:
|
||||
from_secret: docker-registry-token
|
||||
repo: git.t000-n.de/${DRONE_REPO}
|
||||
tags:
|
||||
- ${DRONE_COMMIT_SHA:0:8}
|
||||
- latest
|
||||
|
||||
volumes:
|
||||
- name: modules
|
||||
temp: {}
|
||||
|
||||
Reference in New Issue
Block a user