From 6ce4c7997d65cbf18f9f79a48a7935c27b792895 Mon Sep 17 00:00:00 2001 From: karina Date: Sun, 10 May 2026 22:23:47 +0400 Subject: [PATCH] initial commit --- .gitea/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ .gitignore | 1 + Dockerfile | 11 +++++++++++ README.md | 2 ++ 4 files changed, 48 insertions(+) create mode 100644 .gitea/workflows/build.yml create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..3d00b63 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build and Push Custom Image + +on: + push: + branches: ["main"] + paths: + - "Dockerfile" + - ".gitea/workflows/build.yml" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: https://git.karter.dev/actions/checkout@v4 + + - name: Set up Docker Buildx + uses: https://git.karter.dev/docker/setup-buildx-action@v3 + + - name: Login to Gitea Registry + uses: https://git.karter.dev/docker/login-action@v3 + with: + registry: https://git.karter.dev + username: ${{ github.actor }} + password: ${{ secrets.PAT }} + + - name: Build and push + uses: https://git.karter.dev/docker/build-push-action@v5 + with: + context: . + push: true + tags: | + git.karter.dev/${{ github.repository }}:latest + git.karter.dev/${{ github.repository }}:${{ github.sha }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..22cdef2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM danger89/cmake:latest + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get install -y curl gnupg jq git \ + && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ + && apt-get install -y nodejs \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +RUN node -v && npm -v && cppcheck --version && clang-format --version diff --git a/README.md b/README.md new file mode 100644 index 0000000..7c90ef6 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# CMustHaves +https://hub.docker.com/r/danger89/cmake but with node for actions