Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
157 commits
Select commit Hold shift + click to select a range
d58bc65
Updating github-config
paketo-bot Jun 20, 2025
956f215
Bump github.com/paketo-buildpacks/occam in the go-modules group
dependabot[bot] Jun 20, 2025
445b8d7
Updating buildpack.toml with new versions 20.19.3
paketo-bot Jun 23, 2025
8ff08cd
Bump github.com/andybalholm/brotli in the go-modules group
dependabot[bot] Jun 24, 2025
8561d52
Bump the go-modules group with 4 updates
dependabot[bot] Jun 25, 2025
5e5025a
Bump github.com/docker/docker
dependabot[bot] Jun 25, 2025
186b59c
Updating buildpack.toml with new versions 22.17.0
paketo-bot Jun 25, 2025
7ae5be9
Bump go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp
dependabot[bot] Jun 26, 2025
0c04fbb
Bump the go-modules group with 2 updates
dependabot[bot] Jun 27, 2025
2f8b0bd
Updating github-config
paketo-bot Jun 29, 2025
8bc23cb
Bump github.com/shirou/gopsutil/v4 in the go-modules group
dependabot[bot] Jul 1, 2025
7e01b2e
Adding node 24 and removing node 18 (#1215)
pacostas Jul 2, 2025
8caf637
Bump github.com/anchore/stereoscope from 0.1.5 to 0.1.6
dependabot[bot] Jul 2, 2025
b5f9657
Bump the go-modules group with 4 updates
dependabot[bot] Jul 2, 2025
e6a5884
fix: upgade deps on dependency retrievals (#1213)
pacostas Jul 2, 2025
89c72b0
Bump github.com/docker/docker
dependabot[bot] Jul 3, 2025
7205434
Bump github.com/olekukonko/errors
dependabot[bot] Jul 3, 2025
0628e5d
Bump the go-modules group with 18 updates
dependabot[bot] Jul 3, 2025
42ed974
Bump the go-modules group with 9 updates
dependabot[bot] Jul 4, 2025
7663ea5
fix: adding back node 18 (#1221)
pacostas Jul 4, 2025
f0a5430
Bump github.com/hashicorp/hcl/v2 in the go-modules group
dependabot[bot] Jul 7, 2025
f182fbe
Updating github-config
paketo-bot Jul 8, 2025
09a44c3
Bump github.com/pjbgf/sha1cd from 0.3.2 to 0.4.0 in the go-modules group
dependabot[bot] Jul 9, 2025
74863c9
Bump github.com/docker/docker
dependabot[bot] Jul 10, 2025
32cb84f
Bump the go-modules group with 10 updates
dependabot[bot] Jul 10, 2025
df647d2
Bump the go-modules group with 2 updates
dependabot[bot] Jul 11, 2025
65d59a7
Updates go mod version to 1.24.5
paketo-bot Jul 14, 2025
15a21bb
Bump the go-modules group with 2 updates
dependabot[bot] Jul 14, 2025
310103f
Updating github-config
paketo-bot Jul 15, 2025
a230219
Updating buildpack.toml with new versions 24.4.0
paketo-bot Jul 9, 2025
30f7c2e
Bump github.com/go-viper/mapstructure/v2 in the go-modules group
dependabot[bot] Jul 15, 2025
71cb4a6
Bump github.com/testcontainers/testcontainers-go from 0.37.0 to 0.38.0
dependabot[bot] Jul 15, 2025
fa747b2
Updating buildpack.toml with new versions 20.19.4, 22.17.1, 24.4.1
paketo-bot Jul 16, 2025
ee12def
Bump the go-modules group with 3 updates
dependabot[bot] Jul 17, 2025
d9088dc
Bump the go-modules group with 2 updates
dependabot[bot] Jul 18, 2025
ec3c14c
Updating github-config
paketo-bot Jul 18, 2025
2c2b269
Updating github-config
paketo-bot Jul 19, 2025
0b53fc3
Updating github-config
paketo-bot Jul 22, 2025
e38397e
Bump the go-modules group across 1 directory with 8 updates
dependabot[bot] Jul 23, 2025
494cf33
Bump the go-modules group with 3 updates
dependabot[bot] Jul 25, 2025
485ca7e
Bump the go-modules group with 6 updates
dependabot[bot] Jul 29, 2025
8ef0378
Bump github.com/anchore/stereoscope
dependabot[bot] Jul 29, 2025
5ef671a
Bump github.com/docker/docker
dependabot[bot] Jul 29, 2025
d479a39
Bump github.com/containerd/containerd from 1.7.27 to 1.7.28
dependabot[bot] Jul 29, 2025
56a636c
Updating github-config
paketo-bot Jul 30, 2025
6b25fdf
Bump github.com/paketo-buildpacks/occam in the go-modules group
dependabot[bot] Jul 30, 2025
bd13bed
Bump the go-modules group with 5 updates
dependabot[bot] Jul 31, 2025
9b35a21
Bump github.com/shirou/gopsutil/v4 in the go-modules group
dependabot[bot] Aug 1, 2025
384b240
Bump github.com/go-jose/go-jose/v4 in the go-modules group
dependabot[bot] Aug 5, 2025
ca6928e
Bump the go-modules group across 1 directory with 10 updates
dependabot[bot] Aug 7, 2025
0d57ab9
Bump the go-modules group with 3 updates
dependabot[bot] Aug 8, 2025
5b1ae4a
Updates go mod version to 1.24.6
paketo-bot Aug 11, 2025
398f730
Updating buildpack.toml with new versions 24.5.0, 22.18.0
paketo-bot Aug 1, 2025
15d8517
Bump github.com/anchore/syft in the go-modules group
dependabot[bot] Aug 11, 2025
d482e74
Updating github-config
paketo-bot Aug 13, 2025
7ee0a6d
Updating github-config
paketo-bot Aug 14, 2025
315cdab
fix: using regex to match uuids and versions (#1261)
pacostas Aug 15, 2025
b59f20a
Updating buildpack.toml with new versions 24.6.0
paketo-bot Aug 15, 2025
a0d9c57
Bump the go-modules group across 1 directory with 7 updates
dependabot[bot] Aug 15, 2025
78df37c
Updating github-config
paketo-bot Aug 16, 2025
edd39be
Bump github.com/hashicorp/go-getter in the go-modules group
dependabot[bot] Aug 19, 2025
5315f7b
Bump the go-modules group with 2 updates
dependabot[bot] Aug 19, 2025
d820e8f
Bump the go-modules group with 7 updates
dependabot[bot] Aug 20, 2025
67534d0
Bump the go-modules group across 1 directory with 5 updates
dependabot[bot] Aug 22, 2025
52e9b39
Bump the go-modules group with 3 updates
dependabot[bot] Aug 26, 2025
23c9a6d
Bump github.com/onsi/gomega in the go-modules group
dependabot[bot] Aug 27, 2025
2dfcda9
Updating github-config
paketo-bot Aug 22, 2025
c5c3b86
Updating github-config
paketo-bot Aug 23, 2025
67c2e3a
Updating github-config
paketo-bot Aug 24, 2025
f3bbf11
Bump the go-modules group with 2 updates
dependabot[bot] Aug 27, 2025
3fefccd
Bump github.com/anchore/stereoscope from 0.1.8 to 0.1.9
dependabot[bot] Aug 27, 2025
8329446
Bump the go-modules group with 3 updates
dependabot[bot] Aug 28, 2025
f1772ed
Bump github.com/ulikunitz/xz in /dependency/retrieval
dependabot[bot] Aug 28, 2025
0559928
Bump github.com/ulikunitz/xz from 0.5.13 to 0.5.14
dependabot[bot] Aug 28, 2025
89c69b5
Updating buildpack.toml with new versions 24.7.0
paketo-bot Aug 28, 2025
aa52c9a
Bump github.com/ulikunitz/xz in the go-modules group
dependabot[bot] Aug 29, 2025
1811db6
Bump the go-modules group with 14 updates
dependabot[bot] Sep 2, 2025
721928a
Bump modernc.org/libc from 1.66.3 to 1.66.8 in the go-modules group
dependabot[bot] Sep 3, 2025
acfab42
Bump github.com/spf13/pflag from 1.0.9 to 1.0.10 in the go-modules group
dependabot[bot] Sep 4, 2025
1dada7b
Bump the go-modules group with 2 updates
dependabot[bot] Sep 4, 2025
db9f3ef
Bump github.com/docker/docker
dependabot[bot] Sep 4, 2025
8847989
Bump github.com/hashicorp/aws-sdk-go-base/v2
dependabot[bot] Sep 5, 2025
36bcdd9
Bump cloud.google.com/go in the go-modules group across 1 directory
dependabot[bot] Sep 5, 2025
9f83379
Updating github-config
paketo-bot Sep 6, 2025
928193e
Bump the go-modules group with 14 updates
dependabot[bot] Sep 8, 2025
12abda3
Bump the go-modules group with 21 updates
dependabot[bot] Sep 9, 2025
98dc72c
Bump the go-modules group with 2 updates
dependabot[bot] Sep 10, 2025
8d34a72
Adding multi-arch support for node-engine (#1293)
pacostas Sep 10, 2025
02a5166
Bump the go-modules group with 8 updates
dependabot[bot] Sep 11, 2025
e99a51c
Updating github-config
paketo-bot Sep 12, 2025
3f301a2
fix: adding readme on make retrieve (#1297)
pacostas Sep 12, 2025
845aaeb
Bump the go-modules group with 2 updates
dependabot[bot] Sep 15, 2025
e08a465
Bump the go-modules group with 3 updates
dependabot[bot] Sep 16, 2025
a93d2ea
Bump the go-modules group with 4 updates
dependabot[bot] Sep 17, 2025
a4961db
Bump cloud.google.com/go/compute/metadata in the go-modules group
dependabot[bot] Sep 18, 2025
ee6a00c
Updating github-config
paketo-bot Sep 19, 2025
f64d51c
Bump cloud.google.com/go/compute/metadata in the go-modules group
dependabot[bot] Sep 19, 2025
27a5bc2
Bump github.com/testcontainers/testcontainers-go from 0.38.0 to 0.39.0
dependabot[bot] Sep 19, 2025
723fbf3
Bump the go-modules group with 3 updates
dependabot[bot] Sep 22, 2025
8bcfdf7
Bump cloud.google.com/go from 0.122.0 to 0.123.0 in the go-modules group
dependabot[bot] Sep 22, 2025
094542d
Updating github-config
paketo-bot Sep 23, 2025
3535ea7
Bump the go-modules group with 3 updates
dependabot[bot] Sep 23, 2025
67b5363
Bump the go-modules group with 15 updates
dependabot[bot] Sep 24, 2025
544b4e8
Updates buildpack.toml with 22.20.0 (#1310)
paketo-bot Sep 25, 2025
10a61ba
Bump the go-modules group with 3 updates
dependabot[bot] Sep 25, 2025
22baab0
Bump the go-modules group with 8 updates
dependabot[bot] Sep 26, 2025
6390723
Bump the go-modules group with 16 updates
dependabot[bot] Sep 29, 2025
b53c21b
Bump the go-modules group with 5 updates
dependabot[bot] Sep 30, 2025
9be678e
Bump github.com/docker/docker
dependabot[bot] Oct 3, 2025
a899130
Updating github-config
paketo-bot Oct 8, 2025
7da37d2
Bump github.com/docker/docker
dependabot[bot] Oct 8, 2025
f9b03f4
Updating github-config
paketo-bot Oct 9, 2025
f0dd5e9
Requiring python during build time in case is not available on the bu…
pacostas Oct 12, 2025
25a1ba1
Bump the go-modules group across 1 directory with 32 updates
dependabot[bot] Oct 13, 2025
0a2039e
Bump the go-modules group with 3 updates
dependabot[bot] Oct 15, 2025
efed4a3
Bump github.com/ncruces/go-strftime from 0.1.9 to 1.0.0
dependabot[bot] Oct 15, 2025
116c15a
Bump github.com/hashicorp/aws-sdk-go-base/v2
dependabot[bot] Oct 15, 2025
69c4a20
Revert "Requiring python during build time in case is not available o…
pacostas Oct 17, 2025
749a68b
Bump the go-modules group across 1 directory with 20 updates
dependabot[bot] Oct 17, 2025
515f8c7
Updating buildpack.toml with new versions 22.21.0 (#1341)
paketo-bot Oct 21, 2025
3de8b0d
Bump the go-modules group across 1 directory with 2 updates (#1342)
dependabot[bot] Oct 21, 2025
4e6c161
Bump the go-modules group across 1 directory with 8 updates (#1344)
dependabot[bot] Oct 24, 2025
ace7b51
Bump the go-modules group across 1 directory with 16 updates (#1346)
dependabot[bot] Oct 27, 2025
ff12e2c
Bump github.com/containerd/cgroups/v3 in the go-modules group (#1347)
dependabot[bot] Oct 28, 2025
7584f97
Bump the go-modules group with 5 updates (#1349)
dependabot[bot] Oct 29, 2025
0f5b879
Updating buildpack.toml with new versions 22.21.1 (#1348)
paketo-bot Oct 29, 2025
c07e24d
Updating github-config (#1350)
paketo-bot Oct 30, 2025
7555323
Updating github-config
paketo-bot Oct 31, 2025
4c3bc81
Bump the go-modules group with 15 updates
dependabot[bot] Oct 31, 2025
daf6257
Bump the go-modules group with 5 updates
dependabot[bot] Nov 3, 2025
3fb923c
feat: add node24 (#1356)
MischaFrank Nov 4, 2025
4207d39
Bump github.com/anchore/stereoscope from 0.1.11 to 0.1.12
dependabot[bot] Nov 4, 2025
57c0f49
Bump github.com/docker/docker
dependabot[bot] Nov 5, 2025
a1790fc
Bump github.com/containerd/containerd from 1.7.28 to 1.7.29
dependabot[bot] Nov 6, 2025
1ff28bf
Bump github.com/testcontainers/testcontainers-go from 0.39.0 to 0.40.0
dependabot[bot] Nov 6, 2025
6751158
Bump github.com/hashicorp/aws-sdk-go-base/v2
dependabot[bot] Nov 10, 2025
00137be
Bump github.com/opencontainers/selinux from 1.12.0 to 1.13.0
dependabot[bot] Nov 10, 2025
a0bc5fd
Updating buildpack.toml with new versions 24.11.1
paketo-bot Nov 12, 2025
471c47b
fix: removing bionic testing functionality (#1355)
pacostas Nov 12, 2025
bcf7ca8
Updating github-config
paketo-bot Nov 17, 2025
89d74d6
Bump github.com/anchore/stereoscope from 0.1.12 to 0.1.13
dependabot[bot] Nov 18, 2025
4788196
Bump golang.org/x/crypto from 0.42.0 to 0.45.0 in /dependency/retrieval
dependabot[bot] Nov 20, 2025
39af0cf
Bump golang.org/x/crypto from 0.43.0 to 0.45.0
dependabot[bot] Nov 20, 2025
2329e96
Updating github-config
paketo-bot Nov 25, 2025
81ba5f8
Updating buildpack.toml with new versions 20.19.6
paketo-bot Nov 25, 2025
2ecef19
Updating github-config
paketo-bot Nov 26, 2025
9f60448
fix: linting issues
pacostas Nov 27, 2025
cc9c1ae
Updates go mod version to 1.25.4
paketo-bot Dec 1, 2025
e72b2ea
Bump the go-modules group across 1 directory with 55 updates (#1392)
dependabot[bot] Dec 4, 2025
d613141
Bump github.com/anchore/stereoscope from 0.1.12 to 0.1.13
dependabot[bot] Dec 4, 2025
adb2c15
Bump github.com/ncruces/go-strftime from 0.1.9 to 1.0.0
dependabot[bot] Dec 4, 2025
6743c9d
Bump the go-modules group across 1 directory with 89 updates
dependabot[bot] Dec 4, 2025
e4450f9
Bump github.com/hashicorp/aws-sdk-go-base/v2
dependabot[bot] Dec 4, 2025
3f646ba
Bump github.com/testcontainers/testcontainers-go from 0.39.0 to 0.40.0
dependabot[bot] Dec 5, 2025
d1fc782
Updates go mod version to 1.25.5
paketo-bot Dec 8, 2025
447a899
Merge remote-tracking branch 'upstream/main'
vishal24367 Dec 8, 2025
70abeb0
Added support for v22.13.1
vishal24367 Dec 8, 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@v5
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/checkout@v5 does not exist yet. The latest stable version is typically v4. Please verify the version tag.


- name: Approve
if: steps.human-commits.outputs.human_commits == 'false' && steps.unverified-commits.outputs.unverified_commits == 'false'
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: "CodeQL"

on:
push:
branches: [ main ]
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 +19,15 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v5
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/checkout@v5 does not exist yet. Consider using v4.


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

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

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v4
106 changes: 106 additions & 0 deletions .github/workflows/compile-dependency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: 'Compile Dependency on Target - Reusable Workflow'

description: |
Compiles Dependency on given target, os, and arch

on:
workflow_call:
inputs:
version:
description: 'dependency version'
required: true
type: string
target:
description: 'dependency OS target variant'
required: true
type: string
os:
description: 'platform OS (e.g., linux)'
required: true
type: string
arch:
description: 'platform architecture (e.g., amd64)'
required: true
type: string
shouldCompile:
description: 'whether to compile the dependency'
required: true
type: boolean
shouldTest:
description: 'whether to test the dependency after compilation'
required: true
type: boolean
uploadArtifactName:
description: 'name of the artifact to upload'
required: true
type: string

jobs:
compile:
# Speed up compilation by using runners that match os and arch when they are set, otherwise fall back to emulation.
runs-on: ${{ (inputs.os == 'linux' && inputs.arch == 'arm64') && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}

steps:
- name: Check out code
uses: actions/checkout@v5
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/checkout@v5 does not exist yet. Consider using v4.


- name: Enable experimental features for Docker daemon and CLI
run: |
echo '{"experimental": true}' | sudo tee /etc/docker/daemon.json
sudo systemctl restart docker
mkdir -p ~/.docker
echo '{"experimental": "enabled"}' | sudo tee ~/.docker/config.json

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Setup before compilation
id: compile-setup
run: |
echo "outputdir=$(mktemp -d)" >> "$GITHUB_OUTPUT"

- name: docker build
id: docker-build
env:
SKIP_LOGIN: true
if: ${{ inputs.shouldCompile == true || inputs.shouldCompile == 'true' }}
uses: actions-hub/docker/cli@master
with:
args: "build ${{ (inputs.os != '' && inputs.arch != '') && format('--platform {0}/{1}', inputs.os, inputs.arch) || '' }} -t compilation -f dependency/actions/compile/${{ inputs.target }}.Dockerfile dependency/actions/compile"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using @master for actions is risky as it can introduce breaking changes unexpectedly. Consider pinning to a specific commit SHA or a stable tag.


- name: docker run
id: docker-run
uses: actions-hub/docker/cli@master
env:
SKIP_LOGIN: true
if: ${{ inputs.shouldCompile == true || inputs.shouldCompile == 'true' }}
with:
args: "run ${{ (inputs.os != '' && inputs.arch != '') && format('--platform {0}/{1}', inputs.os, inputs.arch) || '' }} -v ${{ steps.compile-setup.outputs.outputdir }}:/home compilation --outputDir /home --target ${{ inputs.target }} --version ${{ inputs.version }} ${{ inputs.os != '' && format('--os {0}', inputs.os) || '' }} ${{ inputs.arch != '' && format('--arch {0}', inputs.arch) || '' }}"

- name: Print contents of output dir
shell: bash
run: ls -lah ${{ steps.compile-setup.outputs.outputdir }}

- name: Test Dependency
working-directory: dependency
if: ${{ (inputs.shouldCompile == true || inputs.shouldCompile == 'true') && (inputs.shouldTest == true || inputs.shouldTest == 'true') }}
run: |
#!/usr/bin/env bash
set -euo pipefail
shopt -s inherit_errexit

make test \
version="${{ inputs.version }}" \
tarballPath="${{ steps.compile-setup.outputs.outputdir }}/*.tgz" \
os="${{ inputs.os }}" \
arch="${{ inputs.arch }}"

- name: Upload compiled artifact
uses: actions/upload-artifact@v4
if: ${{ inputs.shouldCompile == true || inputs.shouldCompile == 'true' }}
with:
name: '${{ inputs.uploadArtifactName }}'
path: '${{ steps.compile-setup.outputs.outputdir }}/*'
131 changes: 99 additions & 32 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@v5
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/checkout@v5 does not exist yet. Consider using v4.

- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v6
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actions/setup-go@v6 does not exist yet. The latest stable version is typically 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,39 +39,45 @@ 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@v5
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v6
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'
services:
registry:
image: registry:3
ports:
- 5000:5000

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v5
with:
fetch-tags: true

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

- name: Reset Draft Release
id: reset
uses: paketo-buildpacks/github-config/actions/release/reset-draft@main
Expand Down Expand Up @@ -110,13 +116,86 @@ jobs:
echo "buildpack_type=buildpack" >> "$GITHUB_OUTPUT"
fi

- name: Get buildpack path
id: get_buildpack_path
run: |

if [ -f "build/buildpackage.cnb" ]; then
echo "path=build/buildpackage.cnb" >> "$GITHUB_OUTPUT"
else
echo "path=build/buildpackage-linux-amd64.cnb" >> "$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 }}
buildpackage_path: ${{ steps.get_buildpack_path.outputs.path }}

- name: Get Image Digest
id: image_digest
run: |
image_name="localhost:5000/npm-install:latest"

./scripts/publish.sh \
--buildpack-type ${{ steps.get_buildpack_type.outputs.buildpack_type }} \
--image-ref $image_name

echo "digest=$(sudo skopeo inspect "docker://${image_name}" --tls-verify=false | jq -r .Digest)" >> "$GITHUB_OUTPUT"

- name: Set Correct Image Digest on the Release notes
run: |
printf '${{ steps.create-release-notes.outputs.release_body }}' \
| sed -E \
"s/\*\*Digest:\*\* \`sha256:[a-f0-9]{64}\`/\*\*Digest:\*\* \`${{ steps.image_digest.outputs.digest }}\`/" \
> ./release_notes

printf '${{ steps.image_digest.outputs.digest }}' > ./index-digest.sha256

- name: Create release assets
id: create_release_assets
run: |
release_assets=$(jq -n --arg repo_name "${{ github.event.repository.name }}" --arg tag "${{ steps.tag.outputs.tag }}" '
[
{
"path": "build/buildpack.tgz",
"name": ($repo_name + "-" + $tag + ".tgz"),
"content_type": "application/gzip"
},
{
"path": "./index-digest.sha256",
"name": ($repo_name + "-" + $tag + "-" + "index-digest.sha256"),
"content_type": "text/plain"
}
]')

for filepath in build/*.cnb; do
filename=$(basename "$filepath")
asset_name=""
if [[ "$filename" == "buildpackage-linux-amd64.cnb" ]]; then
asset_name="${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.cnb"
elif [[ "$filename" == "buildpackage.cnb" ]]; then
asset_name="${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.cnb"
else
formatted_filename="${filename#buildpackage-}"
asset_name="${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}-${formatted_filename}"
fi

release_assets=$(echo "$release_assets" | jq --arg asset_name "${asset_name}" --arg filepath "$filepath" '
. + [
{
"path": $filepath,
"name": $asset_name,
"content_type": "application/gzip"
}
]')
done

release_assets=$(jq -c <<< "$release_assets" )
printf "release_assets=%s\n" "${release_assets}" >> "$GITHUB_OUTPUT"

- name: Create Release
uses: paketo-buildpacks/github-config/actions/release/create@main
Expand All @@ -126,25 +205,13 @@ jobs:
tag_name: v${{ steps.tag.outputs.tag }}
target_commitish: ${{ github.sha }}
name: v${{ steps.tag.outputs.tag }}
body: ${{ steps.create-release-notes.outputs.release_body }}
body_filepath: "./release_notes"
draft: true
assets: |
[
{
"path": "build/buildpack.tgz",
"name": "${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.tgz",
"content_type": "application/gzip"
},
{
"path": "build/buildpackage.cnb",
"name": "${{ github.event.repository.name }}-${{ steps.tag.outputs.tag }}.cnb",
"content_type": "application/gzip"
}
]
assets: ${{ steps.create_release_assets.outputs.release_assets }}

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
Loading
Loading