-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from funidata/devops
Activate release pipeline
- Loading branch information
Showing
13 changed files
with
62 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
services: | ||
lusmu: | ||
image: hybridilusmu-ci | ||
|
||
e2e: | ||
environment: | ||
- CYPRESS_BASE_URL=$CYPRESS_BASE_URL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,3 @@ services: | |
env_file: | ||
- .env.development | ||
command: npm run watch | ||
|
||
e2e: | ||
env_file: | ||
- .env.development |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Releases | ||
|
||
Releases are automatically build and published as [`hybridilusmu`](https://github.com/funidata/hybridilusmu/pkgs/container/hybridilusmu) to GitHub Container Registry. | ||
|
||
## Stable Release | ||
|
||
A stable release is tagged with `npm version` and after merging to `main`, the stable release workflow is triggered by publishing a [GitHub release](https://github.com/funidata/hybridilusmu/releases/new). | ||
|
||
An example workflow: | ||
|
||
1. Make sure your local branch is clean. | ||
2. Run `npm version <major|minor|patch>` in repo root. This bumps the version in all NPM projects, commits the changes, creates a new tag and pushes tags to GitHub. Only the tags are pushed automatically and it does not matter whether or not your actual branch has been pushed to `origin`. You will need to push the actual commits as usual. | ||
3. Have the branch reviewed and merged into `main`. | ||
4. [Create a new release](https://github.com/funidata/hybridilusmu/releases/new) on GitHub, choosing your new tag as the source. You can use the tag's name as release title or come up with something better. | ||
5. Upon clicking Publish Release, the stable release workflow is triggered. It builds the image from the chosen tag, requires all tests to pass, and published the image to GHCR upon success. | ||
|
||
## Unstable Release | ||
|
||
The head of `main` branch is published on every push with the `next` tag. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
# Sync sub-projects to given version number. | ||
# | ||
# Pass current version as first argument. | ||
# This script is meant to be used along with `npm version` in project root. | ||
|
||
# List projects to update here by their folder name. | ||
projects=( | ||
"app" | ||
) | ||
|
||
new_version=$1 | ||
project_root=$(pwd) | ||
|
||
function update_sub_project_version { | ||
project_name=$1 | ||
dir="${project_root}/${project_name}" | ||
|
||
cd $dir | ||
echo -n "${project_name}: " | ||
|
||
# Don't commit, just bump to given version. | ||
npm version --git-tag-version false $new_version | ||
# Running `npm version` in root will not stage extra files, so add them here. | ||
git add "${dir}/package.json" "${dir}/package-lock.json" | ||
} | ||
|
||
for project in ${projects[@]}; do | ||
update_sub_project_version $project | ||
done |
This file was deleted.
Oops, something went wrong.