Fix issues, add .dockerignore
Some checks failed
CI Code / Linux (ubuntu) (pull_request) Failing after 7s
CI Code / Check spelling (pull_request) Successful in 13s
CI Code / Check coding style (pull_request) Successful in 23s
Publish Docker image / Push Docker image to Docker Hub (push) Failing after 3m35s
CI Code / Linux (debian) (pull_request) Failing after 4m7s
CI Code / Linux (arch) (pull_request) Failing after 7m1s
CI Code / Code Coverage (pull_request) Failing after 7m12s
Some checks failed
CI Code / Linux (ubuntu) (pull_request) Failing after 7s
CI Code / Check spelling (pull_request) Successful in 13s
CI Code / Check coding style (pull_request) Successful in 23s
Publish Docker image / Push Docker image to Docker Hub (push) Failing after 3m35s
CI Code / Linux (debian) (pull_request) Failing after 4m7s
CI Code / Linux (arch) (pull_request) Failing after 7m1s
CI Code / Code Coverage (pull_request) Failing after 7m12s
This commit is contained in:
35
.dockerignore
Normal file
35
.dockerignore
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.gitmodules
|
||||||
|
.kilo
|
||||||
|
.kilocode
|
||||||
|
build-*
|
||||||
|
*.o
|
||||||
|
*.lo
|
||||||
|
*.la
|
||||||
|
*.loT
|
||||||
|
*.pc
|
||||||
|
autom4te.cache
|
||||||
|
config.log
|
||||||
|
config.status
|
||||||
|
configure~
|
||||||
|
compile
|
||||||
|
config.guess
|
||||||
|
config.sub
|
||||||
|
install-sh
|
||||||
|
ltmain.sh
|
||||||
|
Makefile.in
|
||||||
|
configure.ac
|
||||||
|
*.am
|
||||||
|
*.in
|
||||||
|
test-suite.log
|
||||||
|
coverage*
|
||||||
|
prof.supp
|
||||||
|
debug-log*.log
|
||||||
|
.cache
|
||||||
|
meson-*
|
||||||
|
*.doap
|
||||||
|
profrc.example
|
||||||
|
theme_template
|
||||||
|
docs/
|
||||||
|
apidocs/
|
||||||
11
.github/workflows/docker-publish.yml
vendored
11
.github/workflows/docker-publish.yml
vendored
@@ -2,7 +2,7 @@ name: Publish Docker image
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master, ci/docker-hub-publishing]
|
||||||
release:
|
release:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
@@ -11,7 +11,6 @@ jobs:
|
|||||||
name: Push Docker image to Docker Hub
|
name: Push Docker image to Docker Hub
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
packages: write
|
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
@@ -29,10 +28,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
images: cproofdev/cproof
|
images: cproofdev/cproof
|
||||||
tags: |
|
tags: |
|
||||||
type=raw,value=dev,enable-if-ref=refs/heads/master
|
type=raw,value=dev,enable={{is_default_branch}}
|
||||||
type=sha,prefix=nightly-,enable-if-ref=refs/heads/master
|
type=sha,prefix=nightly-,enable={{is_default_branch}}
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
type=raw,value=latest,enable-if-ref=refs/tags/*
|
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: push
|
id: push
|
||||||
@@ -43,5 +42,3 @@ jobs:
|
|||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
|
|
||||||
@@ -79,6 +79,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
libreadline8t64 \
|
libreadline8t64 \
|
||||||
libnotify4 \
|
libnotify4 \
|
||||||
python3 \
|
python3 \
|
||||||
|
libpython3.14 \
|
||||||
libgpgme45 \
|
libgpgme45 \
|
||||||
libotr5t64 \
|
libotr5t64 \
|
||||||
libgtk-3-0t64 \
|
libgtk-3-0t64 \
|
||||||
@@ -94,6 +95,12 @@ COPY --from=builder /usr/local/bin/profanity /usr/local/bin/profanity
|
|||||||
COPY --from=builder /usr/local/lib/libprofanity* /usr/local/lib/
|
COPY --from=builder /usr/local/lib/libprofanity* /usr/local/lib/
|
||||||
COPY --from=builder /usr/local/include/profapi.h /usr/local/include/
|
COPY --from=builder /usr/local/include/profapi.h /usr/local/include/
|
||||||
COPY --from=builder /usr/local/share/profanity /usr/local/share/profanity
|
COPY --from=builder /usr/local/share/profanity /usr/local/share/profanity
|
||||||
|
COPY --from=builder /usr/lib/libstrophe.so* /usr/lib/
|
||||||
|
COPY --from=builder /usr/local/lib/libstrophe.so* /usr/local/lib/
|
||||||
|
|
||||||
|
RUN ldconfig
|
||||||
|
|
||||||
|
RUN ldd /usr/local/bin/profanity | grep 'not found' && exit 1 || true
|
||||||
|
|
||||||
RUN mkdir -p /root/.config/profanity
|
RUN mkdir -p /root/.config/profanity
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user