Contents
- Ensure that your repo contains the following up-to-date branches:
main
ormaster
develop
inbox
- Review your current repo's
.github/workflows/
directory if one currently exists. - Ensure there are no files named
pr_build.yml
orrelease-main.yml
in the.github/workflows/
directory.- If these files aleady exist, they can't be added using the Add Actions To Repository steps below.
- If these files match the current stock pr_build.yaml & release-main.yml, these workflows are already enabled, and you can skip to the Enable Branch Rules section.
- Review any other .yaml/.yml files in
.github/workflows/
to ensure they aren't redundant or are causing unnecessary failed builds.
To enable the KBase build scripts on an existing github.com/kbase repo, simply:
- Navigate to the
Actions
tab on any repository in thekbase
organization. - If there are any existing Actions (workflows) enabled, click on the
New workflow
button above the list of active workflows.- If the repo does not have any active Actions (workflows), then a
Get started with GitHub Actions
page will appear instead.
- If the repo does not have any active Actions (workflows), then a
- Navigate to the
By KBase Software
section. - Click
Configure
under thePull Request Build, Tag, & Push
Action. - Click
Start commit
to add the filepr_build.yml
to the main or master branch of the repo. - Repeat steps 1-5 to add the
Build Production Release Image
(release-main.yml
) Action to the main or master branch of the repo. - Optionally, repeat steps 1-5 to add the
Manual Build & Push
(manual-build.yml
) Action to the main or master branch of the repo. - Use pull requests to propagate the workflow files to all active branches including:
main
/master
develop
inbox
- Any active feature branches
Before using these actions, please:
- Review the Development Workflow and Release Workflow sections.
- Enable the required branch rules and status checks.
- File a request with the DevOps team (via Jira or Slack) to make any resulting images public.
|| Previous: New Repository || Home || Next: Enable Branch Rules ||