Use this Dockerfile
to build a base image for your unit tests
in Concourse CI or Tekton CI/CD
Here is an example of a Concourse
job that uses
electrocucaracha/linter
image.
- name: linting
serial: true
plan:
- get: src
trigger: true
params: {depth: 1}
- in_parallel:
- task: tox
config:
platform: linux
image_resource:
type: docker-image
source:
repository: electrocucaracha/linter
inputs:
- name: code
run:
dir: src
path: /usr/local/bin/linter.sh
params:
RELENG_LINTER_TOOL: tox
Here is an example of a Tekton
pipeline that uses
electrocucaracha/linter
image.
tasks:
- name: tox
taskRef:
name: linter-task
params:
- name: linter_tool
value: tox
resources:
inputs:
- name: repo
resource: src