forked from whamcloud/integrated-manager-for-lustre
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1016 Bytes
/
iml-docker-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
name: IML Docker CI
on:
pull_request:
push:
branches:
- master
jobs:
check_rpm_build:
name: Check RPM build (iml-docker)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Fetch older docker-compose
run: |
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: Build the iml images
working-directory: ./docker
run: |
make save
docker image ls
docker system prune -f --all --volumes
- name: Build rpm
uses: ./.github/actions/copr
env:
SPEC: iml-docker.spec
LOCAL_ONLY: true
SRPM_TASK: iml-docker-srpm
WORKSPACE: ${{ github.workspace }}
- name: Archive rpm
uses: actions/upload-artifact@v1
with:
name: rpm
path: _topdir/RPMS/x86_64