commit 6c50b999399810d74723b1d87dabd41d186f750d Author: karina Date: Sun May 10 22:23:47 2026 +0400 initial commit diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..0d42e2f --- /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://github.com/docker/setup-buildx-action@v3 + + - name: Login to Gitea Registry + uses: https://github.com/docker/login-action@v3 + with: + registry: git.karter.dev + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push + uses: https://github.com/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..bbb5b83 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM danger89/cmake:latest + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get install -y ca-certificates curl gnupg \ + && mkdir -p /etc/apt/keyrings \ + && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ + && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://nodesource.com/node_20.x nodistro main" | tee /etc/apt/apt/sources.list.d/nodesource.list \ + && apt-get update && apt-get install -y \ + nodejs \ + jq \ + git \ + && 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