diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3c7f02d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,27 @@ +# Waf build system +build/ +.waf-*-*/ +.waf3-*-*/ +.lock-waf* + +# Compiled python code +**/__pycache__/ +**/*.py[cod] + +# Qt Creator +*.creator +*.creator.user +.qtc_clangd/ + +# Visual Studio Code +.vscode/ + +# macOS +**/.DS_Store +**/.AppleDouble +**/.LSOverride +**/._* + +# Other +Dockerfile +VERSION.info diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..6f7b9ab --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,19 @@ +name: Docker +on: + push: + tags: + - 'v?[0-9]+.[0-9]+*' + schedule: + # twice a month + - cron: '20 11 5,20 * *' + workflow_dispatch: + +permissions: + packages: write + id-token: write + +jobs: + ndncert: + uses: named-data/actions/.github/workflows/docker-image.yml@v1 + with: + name: ndncert diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8a83c9b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,40 @@ +# syntax=docker/dockerfile:1 + +ARG NDN_CXX_VERSION=latest +FROM ghcr.io/named-data/ndn-cxx-build:${NDN_CXX_VERSION} AS build + +ARG JOBS +ARG SOURCE_DATE_EPOCH +RUN --mount=rw,target=/src <