Skip to content

Commit 69219eb

Browse files
workflows: minor yaml formatting tweaks
Signed-off-by: John Mulligan <[email protected]>
1 parent 9810dee commit 69219eb

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
1+
---
22
name: CI
33

44
on:
55
push:
6-
branches: [ master ]
6+
branches: [master]
77
pull_request:
8-
branches: [ master ]
8+
branches: [master]
99
schedule:
1010
- cron: 1 1 * * *
1111

@@ -14,15 +14,15 @@ jobs:
1414
runs-on: ubuntu-latest
1515
if: github.event_name == 'pull_request'
1616
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
2626
test:
2727
runs-on: ubuntu-latest
2828
strategy:
@@ -36,23 +36,23 @@ jobs:
3636
- test_distro: "centos-stream9"
3737
base_image: "quay.io/centos/centos:stream9"
3838
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 }}
4646

4747
push:
4848
needs: [test]
4949
runs-on: ubuntu-latest
5050
if: (github.event_name == 'push' || github.event_name == 'schedule') && github.repository == 'samba-in-kubernetes/sambacc'
5151
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

Comments
 (0)