Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update builder repo name to cnb-builder-images #150

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/_buildpacks-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,11 @@ jobs:
with:
path: ./buildpacks

- name: Checkout builder repository
- name: Checkout cnb-builder-images repository
uses: actions/checkout@v4
with:
repository: heroku/builder
path: ./builder
repository: heroku/cnb-builder-images
path: ./cnb-builder-images
# Using the GH application token here will configure the local git config for this repo with credentials
# that can be used to make signed commits that are attributed to the GH application user
token: ${{ steps.generate-token.outputs.app_token }}
Expand All @@ -312,7 +312,7 @@ jobs:
# image to exist in order to calculate a digest with `crane`. Adding the check here
# means no files will be modified and so no PR will be created later.
if: inputs.dry_run == false
run: actions update-builder --repository-path ./buildpacks --builder-repository-path ./builder --builders builder-20,builder-22,buildpacks-20,salesforce-functions
run: actions update-builder --repository-path ./buildpacks --builder-repository-path ./cnb-builder-images --builders builder-20,builder-22,buildpacks-20,salesforce-functions

- name: Create Pull Request
id: pr
Expand All @@ -325,7 +325,7 @@ jobs:
Update ${{ github.repository }} to v${{ needs.compile.outputs.version }}

${{ needs.compile.outputs.changelog }}
path: ./builder
path: ./cnb-builder-images
branch: update/${{ github.repository }}
delete-branch: true
# This will ensure commits made from this workflow are attributed to the GH application user
Expand All @@ -334,6 +334,6 @@ jobs:

- name: Configure PR
if: steps.pr.outputs.pull-request-operation == 'created'
run: gh pr merge --auto --squash --repo heroku/builder "${{ steps.pr.outputs.pull-request-number }}"
run: gh pr merge --auto --squash --repo heroku/cnb-builder-images "${{ steps.pr.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ steps.generate-token.outputs.app_token }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Performs the release steps for one or more buildpacks by:
> repository = "{repository_url}"
> ```
* Retrieving the OCI image url published to Docker Hub and registering this with the CNB Registry
* Once all buildpacks have been published, all the buildpack references found in [heroku/builder](https://github.com/heroku/builder)
* Once all buildpacks have been published, all the buildpack references found in [heroku/cnb-builder-images](https://github.com/heroku/cnb-builder-images)
are updated for the given list of builders and a pull request is opened containing all the changes to be committed.

You can pin to:
Expand Down Expand Up @@ -185,6 +185,6 @@ Commands:
generate-buildpack-matrix Generates a JSON list of buildpack information for each buildpack detected
generate-changelog Generates a changelog from one or more buildpacks in a project
prepare-release Bumps the version of each detected buildpack and adds an entry for any unreleased changes from the changelog
update-builder Updates all references to a buildpack in heroku/builder for the given list of builders
update-builder Updates all references to a buildpack in heroku/cnb-builder-images for the given list of builders
help Print this message or the help of the given subcommand(s)
```
2 changes: 1 addition & 1 deletion src/commands/update_builder/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use uriparse::URI;
type Result<T> = std::result::Result<T, Error>;

#[derive(Parser, Debug)]
#[command(author, version, about = "Updates all references to a buildpack in heroku/builder for the given list of builders", long_about = None)]
#[command(author, version, about = "Updates all references to a buildpack in heroku/cnb-builder-images for the given list of builders", long_about = None)]
pub(crate) struct UpdateBuilderArgs {
#[arg(long)]
pub(crate) repository_path: String,
Expand Down