Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

577 B
Raw Blame
FROM golang:1.27.3-trixie AS builder
ARG VERSION
ARG GIT_COMMIT
WORKDIR /action-build
COPY action/ action/
COPY . .
RUN go build \
--ldflags="-X 'github.com/bytebase/bytebase/action/args.Version=${VERSION}' -X 'github.com/bytebase/bytebase/action/args.Gitcommit=${GIT_COMMIT}'" \
-o bytebase-action action/*.go

FROM debian:trixie-slim
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates jq curl \
    && rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY --from=builder /action-build/bytebase-action /usr/local/bin/bytebase-action
CMD ["bytebase-action"]