Skip to content

Commit 29c3de3

Browse files
phil9909kulhadiac0d1ngm0nk3y
authored
Initial stack implementation (#2)
* Initial stack implementation Based on the tiny variant: https://github.com/paketo-buildpacks/jammy-tiny-stack/tree/e9a41436b06d3c3fa2960980ea98be36796ab3b6 Changes: - Renamed - search and replace `tiny` with `base` - change stack id from `io.buildpacks.stacks.jammy.base` to `io.buildpacks.stacks.jammy` as suggested in #1 - Updated README - Updated description - Recreated the `Dockerfile` of the run image based on the build image `Dockerfile` - Added some packages from bionic base stack - Updated the integration test (use a simple java app instead of go) Co-authored-by: Philipp Stehle <[email protected]> * address review comments Co-authored-by: Philipp Stehle <[email protected]> * remove explicit libc6 Co-authored-by: Philipp Stehle <[email protected]> Co-authored-by: Sumit Kulhadia <[email protected]> Co-authored-by: Ralf Pannemans <[email protected]>
1 parent 5621e9e commit 29c3de3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+6060
-0
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @paketo-buildpacks/stacks-maintainers

.github/labels.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
- name: status/possible-priority
2+
description: This issue is ready to work and should be considered as a potential priority
3+
color: F9D0C4
4+
- name: "release-issue"
5+
description: Automated issue alerting to release workflow failure
6+
color: 941515
7+
- name: status/prioritized
8+
description: This issue has been triaged and resolving it is a priority
9+
color: BFD4F2
10+
- name: status/blocked
11+
description: This issue has been triaged and resolving it is blocked on some other issue
12+
color: 848978
13+
- name: bug
14+
description: Something isn't working
15+
color: d73a4a
16+
- name: enhancement
17+
description: A new feature or request
18+
color: a2eeef
19+
- name: documentation
20+
description: This issue relates to writing documentation
21+
color: D4C5F9
22+
- name: semver:major
23+
description: A change requiring a major version bump
24+
color: 6b230e
25+
- name: semver:minor
26+
description: A change requiring a minor version bump
27+
color: cc6749
28+
- name: semver:patch
29+
description: A change requiring a patch version bump
30+
color: f9d0c4
31+
- name: good first issue
32+
description: A good first issue to get started with
33+
color: d3fc03

.github/workflows/approve-bot-pr.yml

+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Approve Bot PRs and Enable Auto-Merge
2+
3+
on:
4+
workflow_run:
5+
workflows: ["Test Pull Request"]
6+
types:
7+
- completed
8+
9+
jobs:
10+
download:
11+
name: Download PR Artifact
12+
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
13+
runs-on: ubuntu-latest
14+
outputs:
15+
pr-author: ${{ steps.pr-data.outputs.author }}
16+
pr-number: ${{ steps.pr-data.outputs.number }}
17+
steps:
18+
- name: 'Download artifact'
19+
uses: paketo-buildpacks/github-config/actions/pull-request/download-artifact@main
20+
with:
21+
name: "event-payload"
22+
repo: ${{ github.repository }}
23+
run_id: ${{ github.event.workflow_run.id }}
24+
workspace: "/github/workspace"
25+
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
26+
- id: pr-data
27+
run: |
28+
echo "::set-output name=author::$(jq -r '.pull_request.user.login' < event.json)"
29+
echo "::set-output name=number::$(jq -r '.pull_request.number' < event.json)"
30+
31+
approve:
32+
name: Approve Bot PRs
33+
needs: download
34+
if: ${{ needs.download.outputs.pr-author == 'paketo-bot' || needs.download.outputs.pr-author == 'dependabot[bot]' }}
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Check Commit Verification
38+
id: unverified-commits
39+
uses: paketo-buildpacks/github-config/actions/pull-request/check-unverified-commits@main
40+
with:
41+
token: ${{ secrets.PAKETO_BOT_REVIEWER_GITHUB_TOKEN }}
42+
repo: ${{ github.repository }}
43+
number: ${{ needs.download.outputs.pr-number }}
44+
45+
- name: Check for Human Commits
46+
id: human-commits
47+
uses: paketo-buildpacks/github-config/actions/pull-request/check-human-commits@main
48+
with:
49+
token: ${{ secrets.PAKETO_BOT_REVIEWER_GITHUB_TOKEN }}
50+
repo: ${{ github.repository }}
51+
number: ${{ needs.download.outputs.pr-number }}
52+
53+
- name: Checkout
54+
if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
55+
uses: actions/checkout@v3
56+
57+
- name: Approve
58+
if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
59+
uses: paketo-buildpacks/github-config/actions/pull-request/approve@main
60+
with:
61+
token: ${{ secrets.PAKETO_BOT_REVIEWER_GITHUB_TOKEN }}
62+
number: ${{ needs.download.outputs.pr-number }}
63+
64+
- name: Enable Auto-Merge
65+
if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
66+
run: |
67+
gh pr merge ${{ needs.download.outputs.pr-number }} --auto --rebase
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)