Skip to content

Commit 4b328ee

Browse files
pawelrutkaqodra
andauthored
Cancel heavy workflows on push to PR (eclipse-score#170)
* Cancel heavy workflows on push to PR * set aib version to 1.1.11 Signed-off-by: Leonardo Rossetti <lrossett@redhat.com> --------- Signed-off-by: Leonardo Rossetti <lrossett@redhat.com> Co-authored-by: Leonardo Rossetti <lrossett@redhat.com>
1 parent a5e3eab commit 4b328ee

File tree

6 files changed

+30
-4
lines changed

6 files changed

+30
-4
lines changed

.github/workflows/build_and_test_autosd.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ on:
1919
push:
2020
branches:
2121
- main
22+
# Do not flood CI with unneeded previous runs in PR
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
25+
cancel-in-progress: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'release/') }}
2226
jobs:
2327
build:
2428
name: x86_64
2529
runs-on: ubuntu-latest
30+
env:
31+
AIB_CONTAINER_IMAGE: quay.io/centos-sig-automotive/automotive-image-builder:1.1.11
2632
steps:
2733
- name: Clean disk space
2834
uses: eclipse-score/more-disk-space@v1
@@ -49,25 +55,25 @@ jobs:
4955
cp -R ./bazel-bin/showcases/showcases/showcases ./images/autosd_x86_64/build/files/reference_integration/
5056
- name: Install AIB Tools
5157
run: |
52-
curl -o auto-image-builder.sh "https://gitlab.com/CentOS/automotive/src/automotive-image-builder/-/raw/main/auto-image-builder.sh?ref_type=heads"
58+
curl -o auto-image-builder.sh "https://gitlab.com/CentOS/automotive/src/automotive-image-builder/-/raw/1.1.11/auto-image-builder.sh?ref_type=tag"
5359
chmod +x auto-image-builder.sh
5460
working-directory: ./images/autosd_x86_64/build
5561
- name: Build AutoSD QEMU (x86_64)
5662
run: |
5763
export AIB_LOCAL_CONTAINER_STORAGE=$PWD/_build/containers-storage
5864
5965
mkdir -p _build/containers-storage
60-
sudo -E ./auto-image-builder.sh build-builder --distro=autosd10-sig
66+
sudo -E ./auto-image-builder.sh -c $AIB_CONTAINER_IMAGE build-builder --distro=autosd10-sig
6167
62-
sudo -E ./auto-image-builder.sh build \
68+
sudo -E ./auto-image-builder.sh -c $AIB_CONTAINER_IMAGE build \
6369
--distro=autosd10-sig \
6470
--target=qemu \
6571
--define-file vars.yml \
6672
--define-file vars-devel.yml \
6773
image.aib.yml \
6874
localhost/score:latest
6975
70-
sudo -E ./auto-image-builder.sh to-disk-image localhost/score:latest _build/disk.qcow2
76+
sudo -E ./auto-image-builder.sh -c $AIB_CONTAINER_IMAGE to-disk-image localhost/score:latest _build/disk.qcow2
7177
7278
sudo chown $(id -u):$(id -u) _build/disk.qcow2
7379
working-directory: ./images/autosd_x86_64/build

.github/workflows/build_and_test_ebclfsa.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
push:
2020
branches:
2121
- main
22+
# Do not flood CI with unneeded previous runs in PR
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
25+
cancel-in-progress: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'release/') }}
2226
jobs:
2327
build:
2428
name: aarch64

.github/workflows/build_and_test_linux.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
push:
2020
branches:
2121
- main
22+
# Do not flood CI with unneeded previous runs in PR
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
25+
cancel-in-progress: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'release/') }}
2226
jobs:
2327
x86_64:
2428
runs-on: ubuntu-latest

.github/workflows/build_and_test_qnx.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919
push:
2020
branches:
2121
- main
22+
# Do not flood CI with unneeded previous runs in PR
23+
concurrency:
24+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
25+
cancel-in-progress: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'release/') }}
2226
jobs:
2327
qnx-build-x86_64:
2428
name: x86_64

.github/workflows/codeql-multiple-repo-scan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
workflow_dispatch:
2525
permissions:
2626
contents: write
27+
# Do not flood CI with unneeded previous runs in PR
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
30+
cancel-in-progress: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'release/') }}
2731
jobs:
2832
analyze-repos:
2933
name: Analyze Multiple Repositories

.github/workflows/test_and_docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ on:
2626
types: [checks_requested]
2727
release:
2828
types: [created]
29+
# Do not flood CI with unneeded previous runs in PR
30+
concurrency:
31+
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
32+
cancel-in-progress: ${{ github.ref_name != 'main' && !startsWith(github.ref_name, 'release/') }}
2933
jobs:
3034
test_and_docs:
3135
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)