File tree Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Expand file tree Collapse file tree 2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,20 @@ concurrency:
16
16
17
17
jobs :
18
18
lint :
19
- runs-on : ubuntu-latest
19
+ runs-on : ubuntu-24.04
20
20
name : Checks syntax of our code
21
+ permissions :
22
+ contents : read
23
+ packages : read
24
+ statuses : write
21
25
steps :
22
26
- uses : actions/checkout@v4
23
27
with :
24
28
# Full git history is needed to get a proper
25
29
# list of changed files within `super-linter`
26
30
fetch-depth : 0
27
- - uses : actions/setup-python@v5
28
- with :
29
- python-version : " 3.9"
30
31
- name : Lint Code Base
31
- uses : github /super-linter@v7
32
+ uses : super-linter /super-linter@v7
32
33
env :
33
34
DEFAULT_BRANCH : develop
34
35
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57
58
- ./build.sh feature
58
59
- ./build.sh main
59
60
os :
60
- - ubuntu-latest
61
- - self-hosted
61
+ - ubuntu-24.04
62
+ - ubuntu-24.04-arm
62
63
fail-fast : false
63
64
env :
64
65
GH_ACTION : enable
73
74
- id : buildx-setup
74
75
name : Set up Docker Buildx
75
76
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
76
82
- id : arm-buildx-platform
77
83
name : Set BUILDX_PLATFORM to ARM64
78
- if : matrix.os == 'self-hosted '
84
+ if : matrix.os == 'ubuntu-24.04-arm '
79
85
run : |
80
86
echo "BUILDX_PLATFORM=linux/arm64" >>"${GITHUB_ENV}"
81
87
- id : docker-build
85
91
BUILDX_BUILDER_NAME : ${{ steps.buildx-setup.outputs.name }}
86
92
- id : arm-time-limit
87
93
name : Set Netbox container start_period higher on ARM64
88
- if : matrix.os == 'self-hosted '
94
+ if : matrix.os == 'ubuntu-24.04-arm '
89
95
run : |
90
96
echo "NETBOX_START_PERIOD=240s" >>"${GITHUB_ENV}"
91
97
- id : docker-test
Original file line number Diff line number Diff line change 21
21
platform :
22
22
- linux/amd64,linux/arm64
23
23
fail-fast : false
24
- runs-on : ubuntu-latest
24
+ runs-on : ubuntu-24.04
25
25
name : Builds new NetBox Docker Images
26
26
env :
27
27
GH_ACTION : enable
You can’t perform that action at this time.
0 commit comments