-
Notifications
You must be signed in to change notification settings - Fork 39
53 lines (47 loc) · 1.21 KB
/
pr-ci.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Pull Request CI
on:
pull_request:
branches:
- main
- 'release-*.*'
jobs:
detect-changes:
runs-on: ubuntu-latest
# Required permissions
permissions:
pull-requests: read
# Set job outputs to values from filter step
outputs:
roles: ${{ steps.filter.outputs.roles }}
steps:
# For pull requests it's not necessary to checkout the code
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
roles:
- 'roles/**'
ansible-lint:
needs: detect-changes
if: ${{ needs.detect-changes.outputs.roles == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout PR branch
uses: actions/checkout@v2
- name: Ansible Lint
uses: ansible/ansible-lint-action@main
with:
path: "roles/"
build-operator:
needs: detect-changes
runs-on: ubuntu-latest
env:
IMG: ttl.sh/konveyor-operator-${{ github.sha }}:1h
steps:
- uses: actions/checkout@v3
- run: make docker-build docker-push
run-ci:
needs: build-operator
uses: konveyor/ci/.github/workflows/global-ci-bundle.yml@main
with:
operator: ttl.sh/konveyor-operator-${{ github.sha }}:1h