Skip to content

Commit 2a985ec

Browse files
committed
Use oVirt specific actions in the build workflow
Signed-off-by: Martin Perina <[email protected]>
1 parent 96497f9 commit 2a985ec

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
pull_request:
66
branches: [main]
77
workflow_dispatch:
8-
branches: [main]
98

109
env:
1110
LD_LIBRARY_PATH: /usr/local/opt/curl/lib:$LD_LIBRARY_PATH
@@ -35,12 +34,6 @@ jobs:
3534
image: quay.io/ovirt/buildcontainer:${{ matrix.container-name }}
3635

3736
steps:
38-
- name: Install DNF core plugins
39-
if: ${{ matrix.shortcut == 'cs9' }}
40-
run: |
41-
# DNF core plugins are installed in the official CS9 container image
42-
dnf install -y dnf-plugins-core
43-
4437
- name: Prepare build environment
4538
run: |
4639
# Install oVirt repositories
@@ -73,7 +66,7 @@ jobs:
7366
-y
7467
7568
- name: Checkout sources
76-
uses: actions/checkout@v2
69+
uses: ovirt/checkout-action@main
7770

7871
- name: Run build for version
7972
run: |
@@ -84,10 +77,9 @@ jobs:
8477
createrepo_c $ARTIFACTS_DIR
8578
8679
- name: Upload RPM artifacts
87-
uses: actions/upload-artifact@v2
80+
uses: ovirt/upload-rpms-action@v2
8881
with:
89-
name: rpm-${{ matrix.shortcut }}
90-
path: ${{ env.ARTIFACTS_DIR }}
82+
directory: ${{ env.ARTIFACTS_DIR }}
9183

9284
- name: Checkout target repository
9385
if: ${{ matrix.shortcut == 'cs9' }}
@@ -122,8 +114,8 @@ jobs:
122114
- name: Install pip2.7
123115
# This step installs pip2.7, which will be needed later
124116
run: |
125-
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
126-
python2 get-pip.py
117+
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py
118+
python2 get-pip.py
127119
128120
- name: Install Python-SDK with Python 2.7
129121
# This step installs the python-sdk with python2.7, as the extension of pdoc,

0 commit comments

Comments
 (0)