Merge pull request #6 from element-hq/t3chguy/docker-bake

Add release & publishing pipelines for Element Web modules
This commit is contained in:
Michael Telatynski 2025-03-04 09:22:45 +00:00 committed by GitHub
commit ca0b82d6e3
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,21 @@
ARG ELEMENT_VERSION=latest
FROM --platform=$BUILDPLATFORM node:lts-alpine AS builder
ARG BUILD_CONTEXT
RUN apk add --no-cache jq
WORKDIR /app
COPY package.json yarn.lock ./
COPY ./$BUILD_CONTEXT/package.json ./$BUILD_CONTEXT/
RUN yarn install --frozen-lockfile --ignore-scripts
COPY tsconfig.json ./
COPY ./$BUILD_CONTEXT ./$BUILD_CONTEXT
RUN cd $BUILD_CONTEXT && yarn vite build
RUN mkdir /modules
RUN cp -r ./$BUILD_CONTEXT/lib/ /modules/$(jq -r '"\(.name)-v\(.version)"' ./$BUILD_CONTEXT/package.json)
FROM ghcr.io/element-hq/element-web:${ELEMENT_VERSION}
COPY --from=builder /modules /tmp/element-web-modules/

View File

@ -52,6 +52,10 @@ class ExampleModule implements Module {
// ...
```
## Releases
The API is versioned using semver, with the major version incremented for breaking changes.
## Copyright & License
Copyright (c) 2025 New Vector Ltd