-
Notifications
You must be signed in to change notification settings - Fork 142
53 lines (50 loc) · 1.86 KB
/
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: KCLI-CI
on: [push, pull_request]
env:
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSWORD }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
COPR_BASE64: ${{ secrets.COPR_BASE64 }}
PYTHONUNBUFFERED: true
jobs:
run-workflow:
name: Workflow
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Install Dependencies
run: sudo .github/prep.sh
shell: bash
- name: Lint Code
run: .github/linting.sh
shell: bash
- name: Test code
run: .github/testing.sh
shell: bash
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'karmab'
name: Release RPM
run: .github/copr.sh
shell: bash
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'karmab'
name: Release DEB
run: .github/cloudsmith.sh
shell: bash
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'karmab'
name: Release PYPI
run: .github/pypi.sh
shell: bash
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'karmab'
name: Build And Push Container
run: .github/container.sh
shell: bash
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'karmab'
name: Build And Push Controller Container
run: .github/container_controller.sh
shell: bash
- name: Push helper redfish library
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: ./.github/kfish.sh
shell: bash