First version of builder

This commit is contained in:
2025-02-18 13:00:27 +01:00
parent c708dcc4c8
commit 376d34283d
2 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
name: Embedded builder creation
run-name: ${{ gitea.actor }} is building the embedded-builder docker image
on: [push]
env:
BUILD_IMAGE: git.firebee.nl/${{ gitea.repository_owner }}/embedded-builder
jobs:
Embedded-Builder-Image:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: lowercase conversion
run: echo "BUILD_IMAGE_LC=${BUILD_IMAGE,,}" >>${GITEA_ENV}
- name: Extract Docker image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.BUILD_IMAGE_LC }}
- name: Log in to Firebee registry
uses: docker/login-action@v3
with:
registry: git.firebee.nl
username: ${{ vars.BUILDER_USERNAME }}
password: ${{ secrets.BUILDER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
push: ${{ github.event_name != 'pull_request' }}
tags:
- ${{ steps.meta.outputs.tags }}
- latest
annotations: ${{ steps.meta.outputs.annotations }}
provenance: true
sbom: true

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM debian:latest
RUN apt-get update && apt-get install -y \
cmake \
gcc-arm-none-eabi \
nodejs \
npm \
&& rm -rf /var/lib/apt/lists/*
# node and nodejs are needed for the checkout job in the gitea runner