Skip to content

Commit e5d5cc9

Browse files
authored
CI: Update Workflow Runners to Self-Hosted container-registry (#317)
* ci: update CI runners to self-hosted container-registry Signed-off-by: bupd <bupdprasanth@gmail.com> * ci: revert e2e jobs to ubuntu-latest for docker support Signed-off-by: bupd <bupdprasanth@gmail.com> * ci: revert release jobs to ubuntu-latest for docker buildx support Signed-off-by: bupd <bupdprasanth@gmail.com> * ci: use remote buildkit for release jobs on self-hosted runner Signed-off-by: bupd <bupdprasanth@gmail.com> * ci: add self-hosted label to runner directives Signed-off-by: bupd <bupdprasanth@gmail.com> * ci: revert self-hosted label, use container-registry only for ARC Signed-off-by: bupd <bupdprasanth@gmail.com> * ci: make remote buildx builder creation idempotent Signed-off-by: bupd <bupdprasanth@gmail.com> --------- Signed-off-by: bupd <bupdprasanth@gmail.com>
1 parent 919537d commit e5d5cc9

5 files changed

Lines changed: 13 additions & 10 deletions

File tree

.github/actions/publish-and-sign/action.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,11 @@ runs:
3434
with:
3535
version: 3.x
3636

37-
- name: Set up Docker Buildx
38-
uses: docker/setup-buildx-action@v3
37+
- name: Set up Docker Buildx with remote BuildKit
38+
shell: bash
39+
run: |
40+
docker buildx inspect remote || docker buildx create --name remote --driver remote tcp://buildkitd.github-runners.svc:1234
41+
docker buildx use remote
3942
4043
- name: Install Cosign
4144
uses: sigstore/cosign-installer@v3.7.0

.github/workflows/labeler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
permissions:
88
contents: read
99
pull-requests: write
10-
runs-on: ubuntu-latest
10+
runs-on: container-registry
1111
steps:
1212
- name: Label PR
1313
uses: actions/labeler@v5

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "assets/**"
77
jobs:
88
lint:
9-
runs-on: ubuntu-latest
9+
runs-on: container-registry
1010
permissions:
1111
contents: write
1212
packages: write

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
permissions:
1616
contents: read
1717
id-token: write
18-
runs-on: ubuntu-latest
18+
runs-on: container-registry
1919
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
2020
steps:
2121
- name: Print GitHub ref for debugging
@@ -44,7 +44,7 @@ jobs:
4444
contents: write
4545
packages: write
4646
id-token: write
47-
runs-on: ubuntu-latest
47+
runs-on: container-registry
4848
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/'))
4949
steps:
5050
- name: Checkout repo

.github/workflows/test.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
vulnerability-check:
11-
runs-on: ubuntu-latest
11+
runs-on: container-registry
1212
steps:
1313
- name: Checkout repo
1414
uses: actions/checkout@v4
@@ -41,7 +41,7 @@ jobs:
4141
fi
4242
4343
test-release:
44-
runs-on: ubuntu-latest
44+
runs-on: container-registry
4545
steps:
4646
- name: Checkout repo
4747
uses: actions/checkout@v4
@@ -71,7 +71,7 @@ jobs:
7171
run: task snapshot
7272

7373
build-satellite:
74-
runs-on: ubuntu-latest
74+
runs-on: container-registry
7575
steps:
7676
- name: Checkout repository
7777
uses: actions/checkout@v4
@@ -90,7 +90,7 @@ jobs:
9090
run: task _build:satellite
9191

9292
build-ground-control:
93-
runs-on: ubuntu-latest
93+
runs-on: container-registry
9494
steps:
9595
- name: Checkout repository
9696
uses: actions/checkout@v4

0 commit comments

Comments
 (0)