generated from EVerest/everest-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andreas Heinrich <[email protected]>
- Loading branch information
Showing
3 changed files
with
484 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Oops, something went wrong.