Skip to content

Commit 4929e54

Browse files
committed
Docs: Update new stemcell line instructions
1 parent c3cd656 commit 4929e54

1 file changed

Lines changed: 24 additions & 17 deletions

File tree

docs/new_stemcell_line.md

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,37 @@
11
# Creating a new stemcell line
22

3-
1. Create a new branch from the passing commit you want to release from. Use `{os_name}-{os_version}/{major}.x` format for branch name (e.g. `ubuntu-jammy/1.x`).
3+
1. Create a new branch from the passing commit you want to release from. Use `ubuntu-${short_name}` format for branch name.
44

5-
`git checkout -b <<BRANCH_NAME>> {commit}`
5+
```shell
6+
export short_name="jammy"
7+
8+
git switch -c ubuntu-${short_name} {commit}
9+
```
610

7-
1. Add, commit, and push the new branch.
11+
2. Update `ci/pipelines/vars.yml` with the appropriate values
812

13+
```yaml
14+
#@data/values
15+
oss:
16+
- os: ubuntu-jammy
17+
# ...
918
```
10-
git push origin <<BRANCH_NAME>>
11-
```
12-
13-
1. Switch back to master branch
1419

15-
```
16-
git checkout master
20+
3. Update `STEMCELL_LINE` in `ci/configure.sh`:
21+
22+
```shell
23+
STEMCELL_LINE="ubuntu-${short_name}"
1724
```
1825

19-
1. On master, update `ci/{os_name}-{os_version}/configure-aggregated-pipeline.sh` with the new branch details using the previous release branch as an example. Specifically, be sure to update the interpolated variables for the correct branch. For `initial_version`, use the same value of the stemcell produced by the commit in the `master` pipeline (e.g. `2.0.0`).
26+
4. Add, commit, and push the new branch.
2027

28+
```shell
29+
git push --set-upstream origin HEAD
2130
```
22-
./ci/{os_name}-{os_version}/configure-aggregated-pipeline.sh
23-
```
31+
5. Configure the new pipeline:
2432

25-
1. Once configured, the stemcell should automatically trigger and create the next minor version of the stemcell (e.g. `2.1.0`).
26-
27-
28-
# References
33+
```shell
34+
./ci/configure.sh
35+
```
2936

30-
* [Stemcell Support Matrix](https://docs.google.com/spreadsheets/d/11LgvmuR-XxXpKB-UVi91FL0nkITGhoB-G1NHPwfnweo/edit) (internal only)
37+
6. Once configured, the stemcell pipeline should automatically trigger.

0 commit comments

Comments
 (0)