mirror of
https://github.com/gravitational/teleport
synced 2024-10-19 16:53:57 +00:00
8ebd304aad
* Add 'make update-webassets' script Copying over from `teleport/ops` to make it easier to discover. Also changed the script to clone the repos into a temp directory and clean it up later. Without this, a nested `teleport` checkout would cause all kinds of problems. * Update Makefile Co-authored-by: Gus Luxton <gus@gravitational.com> Co-authored-by: Gus Luxton <gus@gravitational.com> |
||
---|---|---|
.. | ||
README.md | ||
update-teleport-webassets.sh |
webapps jobs
update-teleport-webassets.sh
This script:
- clones the webapps repo
- checks out the provided named branch (after checking that it exists)
- builds the
dist
directory - clones and pushes updates to
webassets
andwebassets.e
- raises a PR against the Teleport repo to update the submodule commit references
Run using a command like:
./update-teleport-webassets.sh -w gus/webassets-branch -t gus/teleport-branch
Argument | Description |
---|---|
-w |
webapps source branch name to build webassets from (often master ) |
-t |
teleport target branch name to raise a PR against (often master ) |
Extra notes
You will need to have the gh
utility installed on your system for the script to work. You can download it from https://github.com/cli/cli/releases/latest