mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-05-22 06:00:55 +02:00
Use hosted Ubuntu 24.04 runners
This commit is contained in:
parent
a48b86b5d4
commit
b56c45b4ee
24
.github/workflows/push.yml
vendored
24
.github/workflows/push.yml
vendored
@ -16,19 +16,20 @@ concurrency:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04
|
||||||
name: Checks syntax of our code
|
name: Checks syntax of our code
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: read
|
||||||
|
statuses: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
# Full git history is needed to get a proper
|
# Full git history is needed to get a proper
|
||||||
# list of changed files within `super-linter`
|
# list of changed files within `super-linter`
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.9"
|
|
||||||
- name: Lint Code Base
|
- name: Lint Code Base
|
||||||
uses: github/super-linter@v7
|
uses: super-linter/super-linter@v7
|
||||||
env:
|
env:
|
||||||
DEFAULT_BRANCH: develop
|
DEFAULT_BRANCH: develop
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -57,8 +58,8 @@ jobs:
|
|||||||
- ./build.sh feature
|
- ./build.sh feature
|
||||||
- ./build.sh main
|
- ./build.sh main
|
||||||
os:
|
os:
|
||||||
- ubuntu-latest
|
- ubuntu-24.04
|
||||||
- self-hosted
|
- ubuntu-24.04-arm
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
env:
|
env:
|
||||||
GH_ACTION: enable
|
GH_ACTION: enable
|
||||||
@ -73,9 +74,14 @@ jobs:
|
|||||||
- id: buildx-setup
|
- id: buildx-setup
|
||||||
name: Set up Docker Buildx
|
name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- id: arm-install-skopeo
|
||||||
|
name: Install 'skopeo' on ARM64
|
||||||
|
if: matrix.os == 'ubuntu-24.04-arm'
|
||||||
|
run: |
|
||||||
|
sudo apt-get install -y skopeo
|
||||||
- id: arm-buildx-platform
|
- id: arm-buildx-platform
|
||||||
name: Set BUILDX_PLATFORM to ARM64
|
name: Set BUILDX_PLATFORM to ARM64
|
||||||
if: matrix.os == 'self-hosted'
|
if: matrix.os == 'ubuntu-24.04-arm'
|
||||||
run: |
|
run: |
|
||||||
echo "BUILDX_PLATFORM=linux/arm64" >>"${GITHUB_ENV}"
|
echo "BUILDX_PLATFORM=linux/arm64" >>"${GITHUB_ENV}"
|
||||||
- id: docker-build
|
- id: docker-build
|
||||||
@ -85,7 +91,7 @@ jobs:
|
|||||||
BUILDX_BUILDER_NAME: ${{ steps.buildx-setup.outputs.name }}
|
BUILDX_BUILDER_NAME: ${{ steps.buildx-setup.outputs.name }}
|
||||||
- id: arm-time-limit
|
- id: arm-time-limit
|
||||||
name: Set Netbox container start_period higher on ARM64
|
name: Set Netbox container start_period higher on ARM64
|
||||||
if: matrix.os == 'self-hosted'
|
if: matrix.os == 'ubuntu-24.04-arm'
|
||||||
run: |
|
run: |
|
||||||
echo "NETBOX_START_PERIOD=240s" >>"${GITHUB_ENV}"
|
echo "NETBOX_START_PERIOD=240s" >>"${GITHUB_ENV}"
|
||||||
- id: docker-test
|
- id: docker-test
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
platform:
|
platform:
|
||||||
- linux/amd64,linux/arm64
|
- linux/amd64,linux/arm64
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04
|
||||||
name: Builds new NetBox Docker Images
|
name: Builds new NetBox Docker Images
|
||||||
env:
|
env:
|
||||||
GH_ACTION: enable
|
GH_ACTION: enable
|
||||||
|
Loading…
Reference in New Issue
Block a user