Compare commits
2 Commits
master
...
7bd987c84a
Author | SHA1 | Date | |
---|---|---|---|
![]() |
7bd987c84a | ||
![]() |
aa5bc885f9 |
@@ -2,7 +2,7 @@ name: Deploy to GHCR
|
|||||||
|
|
||||||
# only run most recent workflow in branch
|
# only run most recent workflow in branch
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -11,8 +11,6 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- '**/*.dockerfile'
|
- '**/*.dockerfile'
|
||||||
- '.gitea/**'
|
- '.gitea/**'
|
||||||
paths-ignore:
|
|
||||||
- 'README.md'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-16:
|
build-16:
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd your/source/tree
|
cd your/source/tree
|
||||||
podman run --rm -v "${PWD}":/src git.carlpearson.net/cwpearson/clang-format-16:latest clang-format ...
|
podman run --rm -v "${PWD}":/src ghcr.io/cwpearson/clang-format-16:latest clang-format ...
|
||||||
```
|
```
|
||||||
|
|
||||||
Inside the container, the working directory is /src, we use the volume mount to map the host working directory `${PWD}` into `/src`: `-v "${PWD}"/src`.
|
Inside the container, the working directory is /src, we use the volume mount to map the host working directory `${PWD}` into `/src`: `-v "${PWD}"/src`.
|
||||||
|
@@ -16,7 +16,7 @@ RUN cmake -S llvm-project-14.0.6.src/llvm -B build \
|
|||||||
-DLLVM_ENABLE_PROJECTS='clang' \
|
-DLLVM_ENABLE_PROJECTS='clang' \
|
||||||
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||||||
-DLLVM_TARGETS_TO_BUILD=""
|
-DLLVM_TARGETS_TO_BUILD=""
|
||||||
RUN make -C build -j2 install
|
RUN make -C build -j$(nproc) install
|
||||||
|
|
||||||
# base final image off ubi8-micro
|
# base final image off ubi8-micro
|
||||||
FROM docker.io/redhat/ubi8-micro
|
FROM docker.io/redhat/ubi8-micro
|
||||||
@@ -25,7 +25,7 @@ LABEL maintainer="Carl Pearson <me@carlpearson.net>"
|
|||||||
LABEL org.opencontainers.image.title="clang-format 14"
|
LABEL org.opencontainers.image.title="clang-format 14"
|
||||||
LABEL description="A container with clang-format 14"
|
LABEL description="A container with clang-format 14"
|
||||||
LABEL org.opencontainers.image.description="A container with clang-format 14"
|
LABEL org.opencontainers.image.description="A container with clang-format 14"
|
||||||
LABEL org.opencontainers.image.source https://git.carlpearson.net/cwpearson/clang-format
|
LABEL org.opencontainers.image.source https://git.sr.ht/~cwpearson/clang-format
|
||||||
LABEL org.opencontainers.image.licenses="MIT"
|
LABEL org.opencontainers.image.licenses="MIT"
|
||||||
# LABEL version="1.0"
|
# LABEL version="1.0"
|
||||||
# LABEL org.opencontainers.image.version="1.0"
|
# LABEL org.opencontainers.image.version="1.0"
|
||||||
|
@@ -16,7 +16,7 @@ RUN cmake -S llvm-project-16.0.6.src/llvm -B build \
|
|||||||
-DLLVM_ENABLE_PROJECTS='clang' \
|
-DLLVM_ENABLE_PROJECTS='clang' \
|
||||||
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||||||
-DLLVM_TARGETS_TO_BUILD=""
|
-DLLVM_TARGETS_TO_BUILD=""
|
||||||
RUN make -C build -j2 install
|
RUN make -C build -j$(nproc) install
|
||||||
|
|
||||||
# base final image off ubi8-micro
|
# base final image off ubi8-micro
|
||||||
FROM docker.io/redhat/ubi8-micro
|
FROM docker.io/redhat/ubi8-micro
|
||||||
@@ -25,7 +25,7 @@ LABEL maintainer="Carl Pearson <me@carlpearson.net>"
|
|||||||
LABEL org.opencontainers.image.title="clang-format 16"
|
LABEL org.opencontainers.image.title="clang-format 16"
|
||||||
LABEL description="A container with clang-format 16"
|
LABEL description="A container with clang-format 16"
|
||||||
LABEL org.opencontainers.image.description="A container with clang-format 16"
|
LABEL org.opencontainers.image.description="A container with clang-format 16"
|
||||||
LABEL org.opencontainers.image.source https://git.carlpearson.net/cwpearson/clang-format
|
LABEL org.opencontainers.image.source https://git.sr.ht/~cwpearson/clang-format
|
||||||
LABEL org.opencontainers.image.licenses="MIT"
|
LABEL org.opencontainers.image.licenses="MIT"
|
||||||
# LABEL version="1.0"
|
# LABEL version="1.0"
|
||||||
# LABEL org.opencontainers.image.version="1.0"
|
# LABEL org.opencontainers.image.version="1.0"
|
||||||
|
@@ -19,7 +19,7 @@ RUN cmake -S llvm-8.0.1.src -B build \
|
|||||||
-DLLVM_ENABLE_PROJECTS='clang' \
|
-DLLVM_ENABLE_PROJECTS='clang' \
|
||||||
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
||||||
-DLLVM_TARGETS_TO_BUILD=""
|
-DLLVM_TARGETS_TO_BUILD=""
|
||||||
RUN make -C build -j2 install
|
RUN make -C build -j$(nproc) install
|
||||||
|
|
||||||
# base final image off ubi8-micro
|
# base final image off ubi8-micro
|
||||||
FROM docker.io/redhat/ubi8-micro
|
FROM docker.io/redhat/ubi8-micro
|
||||||
@@ -28,7 +28,7 @@ LABEL maintainer="Carl Pearson <me@carlpearson.net>"
|
|||||||
LABEL org.opencontainers.image.title="clang-format 8"
|
LABEL org.opencontainers.image.title="clang-format 8"
|
||||||
LABEL description="A container with clang-format 8"
|
LABEL description="A container with clang-format 8"
|
||||||
LABEL org.opencontainers.image.description="A container with clang-format 8"
|
LABEL org.opencontainers.image.description="A container with clang-format 8"
|
||||||
LABEL org.opencontainers.image.source https://git.carlpearson.net/cwpearson/clang-format
|
LABEL org.opencontainers.image.source https://git.sr.ht/~cwpearson/clang-format
|
||||||
LABEL org.opencontainers.image.licenses="MIT"
|
LABEL org.opencontainers.image.licenses="MIT"
|
||||||
# LABEL version="1.0"
|
# LABEL version="1.0"
|
||||||
# LABEL org.opencontainers.image.version="1.0"
|
# LABEL org.opencontainers.image.version="1.0"
|
||||||
|
Reference in New Issue
Block a user