Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug/doc gen yml - missing labels - make tailor in qs fail & move to github actions #23

Merged
merged 12 commits into from
Apr 30, 2020
39 changes: 39 additions & 0 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Document Generation Service

on: [ push, pull_request ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: download and install wkhtml
run: |
sudo apt install curl
sudo curl -kLO https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo tar vxf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo mv wkhtmltox/bin/wkhtmlto* /usr/bin
- name: Build with Gradle
run: ./gradlew clean test shadowJar --stacktrace --no-daemon
env:
NO_NEXUS: true
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: copy created artifacts into docker context
run: |
cp build/libs/*-all.jar ./docker/app.jar
# enable once we have clarity on the image
# - name: docker build doc gen service
# working-directory: docker
# run: |
# docker build -t document-generation-service .
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ A document generation service that transforms document templates in a remote Bit

## Document Templates

When processing a template `type` at a specific `version`, and data into a document, the service expects the Bitbucket repository to have a `release/${version}` branch that contains the template type at `/templates/${type}.html.tmpl`.
When processing a template `type` at a specific `version`, and data into a document, the DocGen service expects the BitBucket repository to have a `release/${version}` branch that contains the template type at `/templates/${type}.html.tmpl`.

## Requirements

Expand Down
2 changes: 2 additions & 0 deletions openshift/Tailorfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
is,bc

selector app=ods-doc-gen-svc

preserve bc:/spec/output/to/name,bc:/spec/output/imageLabels
5 changes: 4 additions & 1 deletion openshift/bc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
apiVersion: v1
kind: Template
labels:
template: 'ods-document-generation-service'
app: 'ods-doc-gen-svc'
parameters:
- name: PROJECT
displayName: Application
Expand All @@ -20,7 +23,7 @@ objects:
kind: BuildConfig
metadata:
labels:
app: ${COMPONENT}
app: 'ods-doc-gen-svc'
name: ${COMPONENT}
spec:
nodeSelector: null
Expand Down
5 changes: 4 additions & 1 deletion openshift/is.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
apiVersion: v1
kind: Template
labels:
template: 'ods-document-generation-service'
app: 'ods-doc-gen-svc'
parameters:
- name: PROJECT
displayName: Application
Expand All @@ -18,7 +21,7 @@ objects:
kind: ImageStream
metadata:
labels:
app: ${COMPONENT}
app: 'ods-doc-gen-svc'
name: ${COMPONENT}
spec:
dockerImageRepository: ${COMPONENT}
Expand Down