2020-06-07 10:10:21 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build-service
|
2020-06-11 20:00:20 +00:00
|
|
|
image: maven:3.6-jdk-11
|
2020-06-07 10:10:21 +00:00
|
|
|
commands:
|
|
|
|
- cd service/fling
|
2020-06-11 20:00:20 +00:00
|
|
|
- mvn clean package
|
2020-06-07 10:10:21 +00:00
|
|
|
|
|
|
|
- name: build-web
|
|
|
|
image: node:latest
|
|
|
|
commands:
|
|
|
|
- ls -al
|
|
|
|
- cd web/fling
|
2020-06-07 10:59:24 +00:00
|
|
|
- npm install && CI=false npm run build
|
2020-06-11 20:00:20 +00:00
|
|
|
|
|
|
|
- name: publish
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
dockerfile: container/Dockerfile
|
|
|
|
repo: arminfriedl/fling
|
|
|
|
tags: dev
|