diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 2576b15..36a2d98 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,6 +1,6 @@ # Code of Conduct -{{PROJECT_NAME}} is committed to providing a welcoming and harassment-free community. +hook-gitplugin is committed to providing a welcoming and harassment-free community. ## Our Pledge diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7633fa5..39b8bab 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -# Contributing to {{PROJECT_NAME}} +# Contributing to hook-gitplugin Thank you for your interest in contributing. @@ -11,11 +11,11 @@ Thank you for your interest in contributing. ## Workflow 1. Fork the repository and clone it locally -2. Create a topic branch from `{{DEFAULT_BRANCH}}` +2. Create a topic branch from `main` 3. Keep changes focused and easy to review 4. Run the relevant tests, lint checks, and build steps for the repo type 5. Update docs when behavior, APIs, or contributor workflow changes -6. Open a pull request against `{{DEFAULT_BRANCH}}` +6. Open a pull request against `main` ## Commit Messages diff --git a/Dockerfile b/Dockerfile index 75f6882..5d02657 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 -# SPDX-FileCopyrightText: 2026 The plugin-template Authors +# SPDX-FileCopyrightText: 2026 The hook-gitplugin Authors # ── build stage ──────────────────────────────────────────────────────────────── -# Use BUILDPLATFORM so cross-compilation happens on the native runner (fast). -# TARGETOS/TARGETARCH are injected by buildx for each platform slice. FROM --platform=$BUILDPLATFORM golang:1.25-alpine AS build ARG TARGETOS @@ -21,19 +19,12 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \ # ── distroless release image ─────────────────────────────────────────────────── FROM gcr.io/distroless/static-debian12:nonroot -ARG VERSION=dev -ARG BUILD_DATE -ARG VCS_REF - -LABEL org.opencontainers.image.title="semrel-plugin-hook-gitplugin" \ - org.opencontainers.image.description="semrel plugin: hook-gitplugin" \ - org.opencontainers.image.url="https://semrel.io" \ - org.opencontainers.image.source="https://github.com/SemRels/hook-gitplugin" \ - org.opencontainers.image.version="${VERSION}" \ - org.opencontainers.image.created="${BUILD_DATE}" \ - org.opencontainers.image.revision="${VCS_REF}" \ - org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.vendor="SemRels" +# NOTE: intentionally no repo-specific `org.opencontainers.image.*` LABEL block +# here. sync-template.yml only substitutes the "hook-gitplugin Authors" line +# in this file when propagating it to plugin repos (see `sed` step) — it does +# NOT rewrite LABEL title/description/source values. Adding those here would +# get copied verbatim (and wrongly) into every plugin's Dockerfile. Add labels +# in each plugin's own Dockerfile after copying this template, not here. COPY --from=build /out/plugin /usr/local/bin/plugin USER nonroot