forked from observ-vol-mgt/observ-vol-mgt
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (57 loc) · 1.61 KB
/
push.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
54
55
56
57
58
59
60
name: pull request - build test and push
on:
push:
branches: [ main ]
env:
QUAY_ROBOT_USER: observ-vol-mgt+quay_io_observ_vol_mgt_github_actions_robot
jobs:
build-test-push:
name: build-test-push
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: install make
run: sudo apt-get install make
- name: checkout
uses: actions/checkout@v4
- name: login to quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ env.QUAY_ROBOT_USER }}
password: ${{ secrets.QUAY_SECRET }}
- uses: dorny/paths-filter@v3
id: changes
with:
filters: |
controller:
- 'controller/**'
manager_configurator:
- 'manager/configurator/**'
manager_alertmanager:
- 'manager/alertmanager/**'
processor:
- 'processor/**'
- name: run controller tests
if: steps.changes.outputs.controller == 'true'
run: |
cd controller
make ci_push
- name: push manager configurator image
if: steps.changes.outputs.manager_configurator == 'true'
run: |
cd manager/configurator
make ci_push
- name: push manager alermanager image
if: steps.changes.outputs.manager_alertmanager == 'true'
run: |
cd manager/alertmanager
make ci_push
- name: push processor image
if: steps.changes.outputs.processor == 'true'
run: |
cd processor
make ci_push