mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Dendrite auto publish (#1050)
- Created a package.json in servers/dendrite. Moving forward, this file is our canonical dendrite version, and our docker builds will depend on this version. - Created a script that extracts the package.json version and puts it into the GitHub actions build environment as `RELEASE_VERSION`. - Updated the GitHub action so that it builds and publishes the docker image to dockerhub whenever we merge dendrite changes to main. Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com>
This commit is contained in:
parent
4586351a29
commit
1b47ba86d6
4
get-version.sh
Normal file
4
get-version.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# This script is used to extract the version string from the package.json file
|
||||
echo "$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')"
|
||||
4
package.json
Normal file
4
package.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"name": "@herenotthere/dendrite-monolith",
|
||||
"version": "1.0.34"
|
||||
}
|
||||
Loading…
Reference in a new issue