First version of builder
This commit is contained in:
42
.gitea/workflows/build.yaml
Normal file
42
.gitea/workflows/build.yaml
Normal 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
9
Dockerfile
Normal 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
|
||||||
Reference in New Issue
Block a user