Skip to content
Closed
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
951f60e
Updating github-config
paketo-bot Jul 2, 2024
f48eeae
Updating github-config
paketo-bot Jul 3, 2024
d277922
Updating github-config
paketo-bot Jul 11, 2024
12f1da9
Updating github-config
paketo-bot Jul 12, 2024
28499a7
Updating github-config
paketo-bot Sep 4, 2024
70264e8
Updating github-config
paketo-bot Sep 10, 2024
c0d6a07
Updating github-config
paketo-bot Oct 11, 2024
1885d74
Updating github-config
paketo-bot Oct 18, 2024
d0fcd45
Updating github-config
paketo-bot Nov 23, 2024
940c9fd
Updating github-config
paketo-bot Nov 28, 2024
9ed1df1
Updating github-config
paketo-bot Dec 7, 2024
ba8dba1
Updating github-config
paketo-bot Dec 13, 2024
2d9359f
Updating github-config
paketo-bot Dec 18, 2024
316bafc
Updating github-config
paketo-bot Dec 28, 2024
3fe5988
Updating github-config
paketo-bot Jan 7, 2025
90ef446
Updating github-config
paketo-bot Jan 16, 2025
22b0910
Updating github-config
paketo-bot Jan 19, 2025
f033fc8
Updating github-config
paketo-bot Feb 28, 2025
908f7ba
Updating github-config
paketo-bot Mar 23, 2025
5ac9fe0
Updating github-config
paketo-bot Mar 31, 2025
be94439
Updating github-config
paketo-bot Apr 10, 2025
a0e1b0f
Updating github-config
paketo-bot May 2, 2025
338f7b0
Updating github-config
paketo-bot May 17, 2025
9ef34ec
Updating github-config
paketo-bot May 18, 2025
9fc2e77
Updating github-config
paketo-bot Jun 10, 2025
594d2a5
Updating github-config
paketo-bot Jun 15, 2025
6371899
Updating github-config
paketo-bot Jun 17, 2025
99a1866
Updating github-config
paketo-bot Jun 20, 2025
3d963b7
Updating github-config
paketo-bot Jun 29, 2025
bce42d3
Updating github-config
paketo-bot Jul 8, 2025
c7070f6
Updating github-config
paketo-bot Jul 15, 2025
ede2511
Updating github-config
paketo-bot Jul 18, 2025
52ce18d
Updating github-config
paketo-bot Jul 19, 2025
bb2378d
Updating github-config
paketo-bot Jul 22, 2025
372df57
Updating github-config
paketo-bot Jul 30, 2025
d899092
Updating github-config
paketo-bot Aug 13, 2025
667c1eb
Updating github-config
paketo-bot Aug 14, 2025
b04b591
Updating github-config
paketo-bot Aug 16, 2025
40d948f
Updating github-config
paketo-bot Aug 22, 2025
3d3e18f
Updating github-config
paketo-bot Aug 23, 2025
6f9e0ed
Updating github-config
paketo-bot Aug 24, 2025
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
6 changes: 3 additions & 3 deletions .github/workflows/approve-bot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
download:
name: Download PR Artifact
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
pr-author: ${{ steps.pr-data.outputs.author }}
pr-number: ${{ steps.pr-data.outputs.number }}
Expand All @@ -32,7 +32,7 @@ jobs:
name: Approve Bot PRs
needs: download
if: ${{ needs.download.outputs.pr-author == 'paketo-bot' || needs.download.outputs.pr-author == 'dependabot[bot]' }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Check Commit Verification
id: unverified-commits
Expand All @@ -52,7 +52,7 @@ jobs:

- name: Checkout
if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Approve
if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ on:
pull_request:
branches: [ main ]
schedule:
- cron: '34 5 * * *' # daily at 5:34am UTC
- cron: '34 5 * * *' # daily at 5:34am UTC

jobs:
analyze:
name: Analyze
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

strategy:
fail-fast: false
Expand All @@ -21,15 +21,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
52 changes: 35 additions & 17 deletions .github/workflows/create-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ concurrency: release
jobs:
unit:
name: Unit Tests
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
builders: ${{ steps.builders.outputs.builders }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Checkout
uses: actions/checkout@v3
go-version-file: go.mod
- name: Run Unit Tests
run: ./scripts/unit.sh
- name: Get builders from integration.json
Expand All @@ -39,43 +39,46 @@ jobs:

integration:
name: Integration Tests
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: unit
strategy:
matrix:
builder: ${{ fromJSON(needs.unit.outputs.builders) }}
fail-fast: false # don't cancel all test jobs when one fails
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Checkout
uses: actions/checkout@v3
go-version-file: go.mod
- name: Run Integration Tests
run: ./scripts/integration.sh --builder ${{ matrix.builder }} --token ${{ github.token }}
env:
TMPDIR: "${{ runner.temp }}"

release:
name: Release
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: integration
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 'stable'
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod

- name: Reset Draft Release
id: reset
uses: paketo-buildpacks/github-config/actions/release/reset-draft@main
with:
repo: ${{ github.repository }}
token: ${{ github.token }}

- name: Calculate Semver Tag
if: github.event.inputs.version == ''
id: semver
Expand All @@ -84,6 +87,7 @@ jobs:
repo: ${{ github.repository }}
token: ${{ github.token }}
ref-name: ${{ github.ref_name }}

- name: Set Release Tag
id: tag
run: |
Expand All @@ -92,14 +96,28 @@ jobs:
tag="${{ steps.semver.outputs.tag }}"
fi
echo "tag=${tag}" >> "$GITHUB_OUTPUT"

- name: Package
run: ./scripts/package.sh --version "${{ steps.tag.outputs.tag }}"

- name: Get buildpack type
id: get_buildpack_type
run: |

if [ -f "extension.toml" ]; then
echo "buildpack_type=extension" >> "$GITHUB_OUTPUT"
else
echo "buildpack_type=buildpack" >> "$GITHUB_OUTPUT"
fi

- name: Create Release Notes
id: create-release-notes
uses: paketo-buildpacks/github-config/actions/release/notes@main
with:
repo: ${{ github.repository }}
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
buildpack_type: ${{ steps.get_buildpack_type.outputs.buildpack_type }}

- name: Create Release
uses: paketo-buildpacks/github-config/actions/release/create@main
with:
Expand All @@ -126,7 +144,7 @@ jobs:

failure:
name: Alert on Failure
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ unit, integration, release ]
if: ${{ always() && needs.unit.result == 'failure' || needs.integration.result == 'failure' || needs.release.result == 'failure' }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/label-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ concurrency: pr_labels_${{ github.event.number }}
jobs:
autolabel:
name: Ensure Minimal Semver Labels
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Check Minimal Semver Labels
uses: mheap/github-action-required-labels@v3
uses: mheap/github-action-required-labels@v5
with:
count: 1
labels: semver:major, semver:minor, semver:patch
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint-yaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ on:

jobs:
lintYaml:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Checkout github-config
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: paketo-buildpacks/github-config
path: github-config

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: 3.8

Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ on:
jobs:
golangci:
name: lint
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 'stable'

- name: Checkout
uses: actions/checkout@v3
go-version-file: go.mod

- name: golangci-lint
uses: golangci/golangci-lint-action@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
jobs:
publish:
name: Publish
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Publish Draft Release With Highest Semantic Version
id: drafts
Expand All @@ -23,7 +23,7 @@ jobs:

failure:
name: Alert on Failure
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ publish ]
if: ${{ always() && needs.publish.result == 'failure' }}
steps:
Expand Down
31 changes: 29 additions & 2 deletions .github/workflows/push-buildpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ on:
release:
types:
- published
env:
REGISTRIES_FILENAME: "registries.json"

jobs:
push:
name: Push
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:

- name: Checkout
uses: actions/checkout@v4

- name: Parse Event
id: event
run: |
Expand All @@ -30,6 +35,26 @@ jobs:
output: "/github/workspace/buildpackage.cnb"
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}

- name: Parse Configs
id: parse_configs
run: |
registries_filename="${{ env.REGISTRIES_FILENAME }}"

push_to_dockerhub=true
push_to_gcr=false

if [[ -f $registries_filename ]]; then
if jq 'has("dockerhub")' $registries_filename > /dev/null; then
push_to_dockerhub=$(jq '.dockerhub' $registries_filename)
fi
if jq 'has("GCR")' $registries_filename > /dev/null; then
push_to_gcr=$(jq '.GCR' $registries_filename)
fi
fi

echo "push_to_dockerhub=${push_to_dockerhub}" >> "$GITHUB_OUTPUT"
echo "push_to_gcr=${push_to_gcr}" >> "$GITHUB_OUTPUT"

- name: Validate version
run: |
buidpackTomlVersion=$(sudo skopeo inspect "oci-archive:${GITHUB_WORKSPACE}/buildpackage.cnb" | jq -r '.Labels."io.buildpacks.buildpackage.metadata" | fromjson | .version')
Expand All @@ -40,6 +65,7 @@ jobs:
fi

- name: Push to GCR
if: ${{ steps.parse_configs.outputs.push_to_gcr == 'true' }}
env:
GCR_PUSH_BOT_JSON_KEY: ${{ secrets.GCR_PUSH_BOT_JSON_KEY }}
run: |
Expand All @@ -50,6 +76,7 @@ jobs:
sudo skopeo copy "oci-archive:${GITHUB_WORKSPACE}/buildpackage.cnb" "docker://gcr.io/${{ github.repository }}:latest"

- name: Push to DockerHub
if: ${{ steps.parse_configs.outputs.push_to_dockerhub == 'true' }}
id: push
env:
DOCKERHUB_USERNAME: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }}
Expand All @@ -76,7 +103,7 @@ jobs:

failure:
name: Alert on Failure
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [push]
if: ${{ always() && needs.push.result == 'failure' }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/synchronize-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
synchronize:
name: Synchronize Labels
runs-on:
- ubuntu-22.04
- ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ github.token }}
Loading
Loading