teleport/build.assets/webapps
Andrew Lytvynov 8ebd304aad
Add 'make update-webassets' script (#5853)
* 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>
2021-03-10 10:53:17 -08:00
..
README.md Add 'make update-webassets' script (#5853) 2021-03-10 10:53:17 -08:00
update-teleport-webassets.sh Add 'make update-webassets' script (#5853) 2021-03-10 10:53:17 -08:00

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 and webassets.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