Skip to content

Commit

Permalink
Add everest-clang-format image
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Heinrich <[email protected]>
  • Loading branch information
andistorm committed Apr 25, 2024
1 parent 46fe077 commit 988f8ca
Show file tree
Hide file tree
Showing 3 changed files with 484 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-docker-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and push docker images

on:
workflow_dispatch:
inputs:
force_rebuild:
description: 'Force rebuild of all images'
default: false
type: boolean
push:
branches:
- '**'
tags:
- 'v*'

env:
REGISTRY: ghcr.io

jobs:
build-and-push-all-images:
name: Build and push all docker images
strategy:
matrix:
image_name: [everest-clang-format]
uses: everest/everest-ci/.github/workflows/[email protected]
with:
force_rebuild: ${{ inputs.force_rebuild || (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/' )) || false }}
image_name: ${{ matrix.image_name }}
docker_directory: docker/images/
docker_registry: ghcr.io
github_ref_before: ${{ github.event.before }}
github_ref_after: ${{ github.event.after }}
secrets:
SA_GITHUB_PAT: ${{ secrets.SA_GITHUB_PAT }}
SA_GITHUB_USERNAME: ${{ secrets.SA_GITHUB_USERNAME }}
15 changes: 15 additions & 0 deletions docker/images/everest-clang-format/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ARG BASE_IMAGE=debian:12
FROM ${BASE_IMAGE}

RUN apt update && apt upgrade -y
RUN apt update && \
apt install -y \
clang-format-15=1:15.0.6*
RUN ln -s /usr/bin/clang-format-15 /usr/bin/clang-format

RUN apt install -y \
python-is-python3

COPY run-clang-format.py /usr/bin/run-clang-format

ENTRYPOINT ["/usr/bin/run-clang-format"]
Loading

0 comments on commit 988f8ca

Please sign in to comment.