-
Notifications
You must be signed in to change notification settings - Fork 20
35 lines (33 loc) · 960 Bytes
/
ci-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
openshift-yaml-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install oc
uses: redhat-actions/oc-installer@v1
with:
version: '4.6'
- name: Run oc process
run: oc process --local -f openshift/template.yaml -o yaml > blueprint.yaml
- name: validate openshift yaml
uses: instrumenta/kubeval-action@master
with:
files: blueprint.yaml
- name: Run oc process
run: oc process --local -f openshift/ingestion-template.yaml -o yaml > blueprint.yaml
- name: validate openshift yaml
uses: instrumenta/kubeval-action@master
with:
files: blueprint.yaml
build-docker-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run Docker Build
run: docker build --no-cache -t tests-image -f Dockerfile .