Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
150 lines (130 sloc) 2.34 KB
---
kind: pipeline
name: baseimage
platform:
os: linux
arch: amd64
trigger:
branch:
- master
- develop
event:
exclude:
- pull_request
steps:
- name: Docker tag
image: busybox
commands:
- sh docker/tags.sh
when:
event:
exclude:
- pull_request
- name: Build Docker baseimage
image: plugins/docker
settings:
repo: axarev/parsr-base
context: .
dockerfile: docker/parsr-base/Dockerfile
username:
from_secret: registry_user
password:
from_secret: registry_password
---
kind: pipeline
name: API
platform:
os: linux
arch: amd64
trigger:
branch:
- master
- develop
steps:
- name: Change file ownership
image: alpine:latest
commands:
- chown -R 1001:0 /drone/src
- name: Build API
image: axarev/parsr-base:${DRONE_BRANCH}
pull: always
environment:
NODE_ENV: development
commands:
- docker/parsr/build.sh
- name: Tests
image: axarev/parsr-base:${DRONE_BRANCH}
commands:
- npm run test
- name: Docker tag
image: busybox
commands:
- sh docker/tags.sh
when:
event:
exclude:
- pull_request
- name: Build Docker API image
image: plugins/docker
settings:
repo: axarev/parsr
context: .
dockerfile: docker/parsr/Dockerfile
username:
from_secret: registry_user
password:
from_secret: registry_password
build_args:
DEV_MODE: 'true'
BASEIMAGE_VERSION: ${DRONE_BRANCH}
when:
event:
exclude:
- pull_request
depends_on:
- baseimage
---
kind: pipeline
name: UI
platform:
os: linux
arch: amd64
trigger:
branch:
- master
- develop
steps:
- name: Change file ownership
image: alpine:latest
commands:
- chown -R 1001:0 /drone/src
- name: Build UI
image: registry.access.redhat.com/ubi8/nodejs-10
environment:
NODE_ENV: development
commands:
- docker/parsr-ui/build.sh
- name: Docker tag
image: busybox
commands:
- sh docker/tags.sh
when:
event:
exclude:
- pull_request
- name: Build UI Docker image
image: plugins/docker
settings:
repo: axarev/parsr-ui-localhost
context: .
dockerfile: docker/parsr-ui/Dockerfile
username:
from_secret: registry_user
password:
from_secret: registry_password
build_args:
VUE_APP_API: http://localhost:3001
when:
event:
exclude:
- pull_request
You can’t perform that action at this time.