Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/workflows/buildkit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Build OpenGL-supported Docker Images

on:
push:
branches: [ humble ]
tags:
- '*'
pull_request:
branches: [ humble ]

workflow_dispatch:

jobs:
build-amd64:
runs-on:
- lcas

services:
cache:
image: registry:2
ports:
- 5000:5000

steps:
- name: Node Js
uses: actions/setup-node@v4
- uses: actions/checkout@v3
- name: What
run: echo "BRANCH=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Docker Login LCAS
# You may pin to the exact commit or the version.
# uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
uses: docker/login-action@v3
with:
# Server address of Docker registry. If not set then will default to Docker Hub
registry: lcas.lincoln.ac.uk
# Username used to log against the Docker registry
username: ${{ secrets.LCAS_REGISTRY_PUSHER }}
# Password or personal access token used to log against the Docker registry
password: ${{ secrets.LCAS_REGISTRY_TOKEN }}

- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
lcas.lincoln.ac.uk/lcas/sandbox

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
buildkitd-config-inline: |
[registry."localhost:5000"]
http = true
insecure = true

- name: "image name from repo name"
id: docker_image_name
run: echo "docker_image=${{ github.repository }}" | tr '[:upper:]' '[:lower:]' |sed 's/[^0-9,a-z,A-Z,=,_,\/]/-/g' >>${GITHUB_OUTPUT}

- name: Build Docker Image
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
cache-from: type=registry,ref=localhost:5000/${{ steps.docker_image_name.outputs.docker_image }}:${{ env.BRANCH }},registry.insecure=true
cache-to: type=registry,ref=localhost:5000/${{ steps.docker_image_name.outputs.docker_image }}:${{ env.BRANCH }},mode=max,registry.insecure=true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
4 changes: 2 additions & 2 deletions .github/workflows/ros-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
# you may want to configure the branches that this should be run on here.
branches: [ "humble" ]
pull_request:
branches: [ "humble" ]
#pull_request:
# branches: [ "humble" ]

jobs:
test_docker: # On Linux, iterates on all ROS 1 and ROS 2 distributions.
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:noble AS base

RUN apt-get update && apt-get install -y \
curl \
&& rm -rf /var/lib/apt/lists/*

COPY . /app
WORKDIR /app

RUN find
Loading