Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
FROM golang:1.27.3-alpine3.24 AS builder
ARG VERSION
ARG GIT_COMMIT
WORKDIR /action-build
COPY action/ action/
COPY . .
RUN go build \
--ldflags="-w -s -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 alpine:3.24.3
RUN apk update
# Azure DevOps pipeline requires bash.
RUN apk add --no-cache ca-certificates jq bash gcompat curl
WORKDIR /
COPY --from=builder /action-build/bytebase-action /usr/local/bin/bytebase-action
CMD ["bytebase-action"]