Skip to content

Commit b56c45b

Browse files
committed
Use hosted Ubuntu 24.04 runners
1 parent a48b86b commit b56c45b

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.github/workflows/push.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,20 @@ concurrency:
1616

1717
jobs:
1818
lint:
19-
runs-on: ubuntu-latest
19+
runs-on: ubuntu-24.04
2020
name: Checks syntax of our code
21+
permissions:
22+
contents: read
23+
packages: read
24+
statuses: write
2125
steps:
2226
- uses: actions/checkout@v4
2327
with:
2428
# Full git history is needed to get a proper
2529
# list of changed files within `super-linter`
2630
fetch-depth: 0
27-
- uses: actions/setup-python@v5
28-
with:
29-
python-version: "3.9"
3031
- name: Lint Code Base
31-
uses: github/super-linter@v7
32+
uses: super-linter/super-linter@v7
3233
env:
3334
DEFAULT_BRANCH: develop
3435
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -57,8 +58,8 @@ jobs:
5758
- ./build.sh feature
5859
- ./build.sh main
5960
os:
60-
- ubuntu-latest
61-
- self-hosted
61+
- ubuntu-24.04
62+
- ubuntu-24.04-arm
6263
fail-fast: false
6364
env:
6465
GH_ACTION: enable
@@ -73,9 +74,14 @@ jobs:
7374
- id: buildx-setup
7475
name: Set up Docker Buildx
7576
uses: docker/setup-buildx-action@v3
77+
- id: arm-install-skopeo
78+
name: Install 'skopeo' on ARM64
79+
if: matrix.os == 'ubuntu-24.04-arm'
80+
run: |
81+
sudo apt-get install -y skopeo
7682
- id: arm-buildx-platform
7783
name: Set BUILDX_PLATFORM to ARM64
78-
if: matrix.os == 'self-hosted'
84+
if: matrix.os == 'ubuntu-24.04-arm'
7985
run: |
8086
echo "BUILDX_PLATFORM=linux/arm64" >>"${GITHUB_ENV}"
8187
- id: docker-build
@@ -85,7 +91,7 @@ jobs:
8591
BUILDX_BUILDER_NAME: ${{ steps.buildx-setup.outputs.name }}
8692
- id: arm-time-limit
8793
name: Set Netbox container start_period higher on ARM64
88-
if: matrix.os == 'self-hosted'
94+
if: matrix.os == 'ubuntu-24.04-arm'
8995
run: |
9096
echo "NETBOX_START_PERIOD=240s" >>"${GITHUB_ENV}"
9197
- id: docker-test

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
platform:
2222
- linux/amd64,linux/arm64
2323
fail-fast: false
24-
runs-on: ubuntu-latest
24+
runs-on: ubuntu-24.04
2525
name: Builds new NetBox Docker Images
2626
env:
2727
GH_ACTION: enable

0 commit comments

Comments
 (0)