1
-
1
+ ---
2
2
name : CI
3
3
4
4
on :
5
5
push :
6
- branches : [ master ]
6
+ branches : [master]
7
7
pull_request :
8
- branches : [ master ]
8
+ branches : [master]
9
9
schedule :
10
10
- cron : 1 1 * * *
11
11
@@ -14,15 +14,15 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
if : github.event_name == 'pull_request'
16
16
steps :
17
- - uses : actions/checkout@v3
18
- with :
19
- fetch-depth : 0
20
- ref : ${{ github.event.pull_request.head.sha }}
21
- - uses : actions/setup-python@v4
22
- - name : Install tox
23
- run : python -m pip install tox
24
- - name : Run gitlint
25
- run : tox -e gitlint
17
+ - uses : actions/checkout@v3
18
+ with :
19
+ fetch-depth : 0
20
+ ref : ${{ github.event.pull_request.head.sha }}
21
+ - uses : actions/setup-python@v4
22
+ - name : Install tox
23
+ run : python -m pip install tox
24
+ - name : Run gitlint
25
+ run : tox -e gitlint
26
26
test :
27
27
runs-on : ubuntu-latest
28
28
strategy :
@@ -36,23 +36,23 @@ jobs:
36
36
- test_distro : " centos-stream9"
37
37
base_image : " quay.io/centos/centos:stream9"
38
38
steps :
39
- - uses : actions/checkout@v3
40
- with :
41
- fetch-depth : 0
42
- - name : Build test container
43
- run : docker build -t sambacc:ci-${{ matrix.test_distro }} --build-arg=SAMBACC_BASE_IMAGE=${{ matrix.base_image }} tests/container/ -f tests/container/Containerfile
44
- - name : Run test container
45
- run : docker run -v $PWD:/var/tmp/build/sambacc sambacc:ci-${{ matrix.test_distro }}
39
+ - uses : actions/checkout@v3
40
+ with :
41
+ fetch-depth : 0
42
+ - name : Build test container
43
+ run : docker build -t sambacc:ci-${{ matrix.test_distro }} --build-arg=SAMBACC_BASE_IMAGE=${{ matrix.base_image }} tests/container/ -f tests/container/Containerfile
44
+ - name : Run test container
45
+ run : docker run -v $PWD:/var/tmp/build/sambacc sambacc:ci-${{ matrix.test_distro }}
46
46
47
47
push :
48
48
needs : [test]
49
49
runs-on : ubuntu-latest
50
50
if : (github.event_name == 'push' || github.event_name == 'schedule') && github.repository == 'samba-in-kubernetes/sambacc'
51
51
steps :
52
- - uses : actions/checkout@v3
53
- - name : log in to quay.io
54
- run : docker login -u "${{ secrets.QUAY_USER }}" -p "${{ secrets.QUAY_PASS }}" quay.io
55
- - name : build container image
56
- run : docker build -t quay.io/samba.org/sambacc:latest tests/container -f tests/container/Containerfile
57
- - name : publish container image
58
- run : docker push quay.io/samba.org/sambacc:latest
52
+ - uses : actions/checkout@v3
53
+ - name : log in to quay.io
54
+ run : docker login -u "${{ secrets.QUAY_USER }}" -p "${{ secrets.QUAY_PASS }}" quay.io
55
+ - name : build container image
56
+ run : docker build -t quay.io/samba.org/sambacc:latest tests/container -f tests/container/Containerfile
57
+ - name : publish container image
58
+ run : docker push quay.io/samba.org/sambacc:latest
0 commit comments