Optimizing for Docker Container
This commit is contained in:
30
.drone.yml
30
.drone.yml
@ -1,8 +1,22 @@
|
||||
pipeline:
|
||||
core:
|
||||
image: node
|
||||
commands:
|
||||
- node --version && npm --version
|
||||
- npm install
|
||||
- cd views && npm install && cd ..
|
||||
- npm run build
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: Build with node
|
||||
image: node:12
|
||||
commands:
|
||||
- npm install
|
||||
- cd views && npm install && cd ..
|
||||
- npm run build
|
||||
- name: Publish to docker
|
||||
image: plugins/docker
|
||||
settings:
|
||||
username:
|
||||
from_secret: docker_username
|
||||
password:
|
||||
from_secret: docker_password
|
||||
auto_tag: true
|
||||
repo: hibas123.azurecr.io/authserver
|
||||
registry: hibas123.azurecr.io
|
||||
debug: true
|
||||
|
Reference in New Issue
Block a user