Merge pull request #6 from element-hq/t3chguy/docker-bake
Add release & publishing pipelines for Element Web modules
This commit is contained in:
@@ -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/
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user