Skip to content

Commit

Permalink
+ add Update Draft Release for builder template
Browse files Browse the repository at this point in the history
  • Loading branch information
lispking committed Jan 28, 2024
1 parent 8765f9f commit bb11dcb
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 5 deletions.
32 changes: 32 additions & 0 deletions assets/templates/builder/.github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
template: $CHANGES
name-template: $RESOLVED_VERSION
tag-template: v$RESOLVED_VERSION
categories:
- title: ⭐️ Enhancements
labels:
- type:enhancement
- title: "\U0001F41E Bug Fixes"
labels:
- type:bug
- title: "\U0001F4D4 Documentation"
labels:
- type:documentation
- title: ⛏ Dependency Upgrades
labels:
- type:dependency-upgrade
- title: "\U0001F6A7 Tasks"
labels:
- type:task
exclude-labels:
- type:question
version-resolver:
major:
labels:
- semver:major
minor:
labels:
- semver:minor
patch:
labels:
- semver:patch
default: patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Update Draft Release
"on":
push:
branches:
- main
jobs:
update:
name: Update Draft Release
runs-on:
- ubuntu-latest
steps:
- id: release-drafter
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }}
- name: Docker login ghcr.io
if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }}
uses: docker/login-action@v2
with:
password: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
- uses: actions/checkout@v3
- name: Update draft release with buildpack information
uses: docker://ghcr.io/paketo-buildpacks/actions/draft-release:main
with:
github_token: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }}
release_body: ${{ steps.release-drafter.outputs.body }}
release_id: ${{ steps.release-drafter.outputs.id }}
release_name: ${{ steps.release-drafter.outputs.name }}
release_tag_name: ${{ steps.release-drafter.outputs.tag_name }}
5 changes: 0 additions & 5 deletions assets/templates/builder/builder.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@
# limitations under the License.

description = "A Cloud Native Buildpacks (CNB) builder with Paketo stacks (Jammy Jellyfish) and {{ packer_name }}"

{% for dependency in dependencies %}
[[buildpacks]]
id = "{{ dependency.repo }}"
uri = "docker://ghcr.io/{{ dependency.repo }}:{{ dependency.version }}"
{% endfor %}

[lifecycle]
version = "0.18.3"

[[order]]

{% for dependency in dependencies %}
[[order.group]]
id = "{{ dependency.repo }}"
Expand Down

0 comments on commit bb11dcb

Please sign in to comment.