Skip to content

Commit

Permalink
Add partial jammy support
Browse files Browse the repository at this point in the history
  • Loading branch information
f0reachARR committed May 31, 2024
1 parent 0153a5b commit e384717
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 8 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
strategy:
matrix:
target: [amd64, amd64_small, aarch64, aarch64_small]
rosdistro: [humble, jazzy]
exclude:
- target: amd64
rosdistro: jazzy
- target: aarch64
rosdistro: jazzy
steps:
- uses: actions/checkout@v4

Expand All @@ -39,6 +45,7 @@ jobs:
set: |
*.cache-to=type=registry,ref=ghcr.io/fortefibre/buildroot-${{ matrix.target }}-cache,mode=max
*.cache-from=type=registry,ref=ghcr.io/fortefibre/buildroot-${{ matrix.target }}-cache
*.args.ROS_DISTRO=${{ matrix.rosdistro }}
pull:
runs-on: GPU
Expand Down
3 changes: 2 additions & 1 deletion buildroot/Dockerfile.amd64
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG ROS_DISTRO=humble
ARG BASE_IMAGE

FROM docker.io/hakuturu583/cuda_ros:humble-cuda-12.2.0-devel as build_stage
FROM $BASE_IMAGE as build_stage

ENV DEBIAN_FRONTEND=noninteractive

Expand Down
5 changes: 3 additions & 2 deletions buildroot/Dockerfile.arm64
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ARG ROS_DISTRO=humble
ARG BASE_IMAGE

FROM --platform=${BUILDPLATFORM} impactaky/mc-ubuntu22.04-${TARGETARCH}-host:2.0.1 AS mimic-host
FROM docker.io/hakuturu583/cuda_ros:lt4-humble-cuda-12.2.2-devel as build_stage
FROM --platform=${BUILDPLATFORM} impactaky/mc-ubuntu22.04-${TARGETARCH}-host:2.3.0 AS mimic-host
FROM $BASE_IMAGE as build_stage

ENV DEBIAN_FRONTEND=noninteractive
ENV DENO_NO_UPDATE_CHECK=1
Expand Down
2 changes: 1 addition & 1 deletion buildroot/Dockerfile.small.amd64
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG ROS_DISTRO=humble

FROM ros:${ROS_DISTRO}-perception-jammy as build_stage
FROM ros:${ROS_DISTRO}-perception as build_stage

ENV DEBIAN_FRONTEND=noninteractive

Expand Down
4 changes: 2 additions & 2 deletions buildroot/Dockerfile.small.arm64
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG ROS_DISTRO=humble

FROM --platform=${BUILDPLATFORM} impactaky/mc-ubuntu22.04-${TARGETARCH}-host:2.0.1 AS mimic-host
FROM ros:${ROS_DISTRO}-perception-jammy as build_stage
FROM --platform=${BUILDPLATFORM} impactaky/mc-ubuntu22.04-${TARGETARCH}-host:2.3.0 AS mimic-host
FROM ros:${ROS_DISTRO}-perception as build_stage

ENV DEBIAN_FRONTEND=noninteractive
ENV DENO_NO_UPDATE_CHECK=1
Expand Down
5 changes: 3 additions & 2 deletions buildroot/deb-s3/entrypoint.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

set -e
echo "$INPUT_GPG_PRIVATE_KEY" | gpg --import || true
CODENAME=${INPUT_CODENAME:-jammy}
deb-s3 upload --bucket $INPUT_S3_BUCKET \
--access-key-id $INPUT_S3_ACCESS_KEY_ID \
--secret-access-key $INPUT_S3_ACCESS_KEY_SECRET \
--component main \
--endpoint $INPUT_S3_ENDPOINT \
--sign $INPUT_GPG_FINGERPRINT \
--codename jammy \
$INPUT_INPUT_DIR/*.deb
--codename $CODENAME \
$INPUT_INPUT_DIR/*.deb
6 changes: 6 additions & 0 deletions buildroot/docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ target "amd64" {
dockerfile = "Dockerfile.amd64"
platforms = ["linux/amd64"]
tags = ["ghcr.io/fortefibre/buildroot:humble-amd64"]
args = {
BASE_IMAGE = "docker.io/hakuturu583/cuda_ros:humble-cuda-12.2.0-devel"
}
}

target "aarch64" {
target = "build_stage"
dockerfile = "Dockerfile.arm64"
platforms = ["linux/arm64"]
tags = ["ghcr.io/fortefibre/buildroot:humble-aarch64"]
args = {
BASE_IMAGE = "docker.io/hakuturu583/cuda_ros:lt4-humble-cuda-12.2.2-devel"
}
}

target "amd64_small" {
Expand Down
2 changes: 2 additions & 0 deletions update_apt_repo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ inputs:
description: "GPG private key to sign release file"
gpg_fingerprint:
description: "GPG fingerprint"
codename:
description: Ubuntu codename

runs:
using: "docker"
Expand Down

0 comments on commit e384717

Please sign in to comment.