Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
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
2 changes: 1 addition & 1 deletion .github/pipeline-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.46.1
1.47.2
23 changes: 12 additions & 11 deletions .github/workflows/pb-create-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ jobs:
steps:
- 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@v3
uses: docker/login-action@v4
with:
password: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
- uses: actions/setup-go@v6
- uses: actions/setup-go@v7
with:
cache: false
go-version: "1.26"
- name: Install create-package
run: |
Expand All @@ -26,13 +27,13 @@ jobs:
set -euo pipefail

go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest
- uses: buildpacks/github-actions/setup-tools@v5.12.0
- uses: buildpacks/github-actions/setup-tools@v6.0.0
with:
crane-version: 0.20.3
crane-version: 0.21.7
yj-version: 5.1.0
- uses: buildpacks/github-actions/setup-pack@v5.12.0
- uses: buildpacks/github-actions/setup-pack@v6.0.0
with:
pack-version: 0.40.2
pack-version: 0.40.8
- name: Enable pack Experimental
run: |
#!/usr/bin/env bash
Expand All @@ -41,9 +42,9 @@ jobs:

echo "Enabling pack experimental features"
pack config experimental true
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- if: ${{ false }}
uses: actions/cache@v5
uses: actions/cache@v6
with:
key: ${{ runner.os }}-go-${{ hashFiles('**/buildpack.toml', '**/package.toml') }}
path: |-
Expand Down Expand Up @@ -164,15 +165,15 @@ jobs:
fi
done
else
if [ -n "$TTL_SH_PUBLISH" ] && [ "$TTL_SH_PUBLISH" = "true" ]; then
if [ "${REGISTRY_PUBLISH:-}" = "true" ]; then
TAG="${PACKAGE}-$(mktemp -u XXXXX | awk '{print tolower($0)}'):${VERSION}"
pack -v buildpack package "${TAG}" ${CONFIG} --format "${FORMAT}" --publish
else
TAG="${PACKAGE}:${VERSION}"
pack -v buildpack package "${TAG}" ${CONFIG} --format "${FORMAT}"
fi

echo "ttl-image-tag=${TAG:-}" >> "$GITHUB_OUTPUT"
echo "image-tag=${TAG:-}" >> "$GITHUB_OUTPUT"
fi
env:
PACKAGES: ghcr.io/amp-buildpacks/aleo
Expand Down Expand Up @@ -203,7 +204,7 @@ jobs:
DIGEST: ${{ steps.package.outputs.digest }}
GITHUB_TOKEN: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }}
- if: ${{ false }}
uses: docker://ghcr.io/buildpacks/actions/registry/request-add-entry:5.12.0
uses: docker://ghcr.io/buildpacks/actions/registry/request-add-entry:6.0.0
with:
address: ghcr.io/amp-buildpacks/aleo@${{ steps.package.outputs.digest }}
id: amp-buildpacks/aleo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pb-synchronize-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- uses: micnncim/action-label-syncer@v1
env:
GITHUB_TOKEN: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }}
25 changes: 13 additions & 12 deletions .github/workflows/pb-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:
steps:
- 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@v3
uses: docker/login-action@v4
with:
password: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
- uses: actions/setup-go@v6
- uses: actions/setup-go@v7
with:
cache: false
go-version: "1.26"
- name: Install create-package
run: |
Expand All @@ -32,9 +33,9 @@ jobs:
set -euo pipefail

go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest
- uses: buildpacks/github-actions/setup-pack@v5.12.0
- uses: buildpacks/github-actions/setup-pack@v6.0.0
with:
pack-version: 0.40.2
pack-version: 0.40.8
- name: Enable pack Experimental
run: |
#!/usr/bin/env bash
Expand All @@ -43,8 +44,8 @@ jobs:

echo "Enabling pack experimental features"
pack config experimental true
- uses: actions/checkout@v6
- uses: actions/cache@v5
- uses: actions/checkout@v7
- uses: actions/cache@v6
with:
key: ${{ runner.os }}-go-${{ hashFiles('**/buildpack.toml', '**/package.toml') }}
path: |-
Expand Down Expand Up @@ -163,33 +164,33 @@ jobs:
fi
done
else
if [ -n "$TTL_SH_PUBLISH" ] && [ "$TTL_SH_PUBLISH" = "true" ]; then
if [ "${REGISTRY_PUBLISH:-}" = "true" ]; then
TAG="${PACKAGE}-$(mktemp -u XXXXX | awk '{print tolower($0)}'):${VERSION}"
pack -v buildpack package "${TAG}" ${CONFIG} --format "${FORMAT}" --publish
else
TAG="${PACKAGE}:${VERSION}"
pack -v buildpack package "${TAG}" ${CONFIG} --format "${FORMAT}"
fi

echo "ttl-image-tag=${TAG:-}" >> "$GITHUB_OUTPUT"
echo "image-tag=${TAG:-}" >> "$GITHUB_OUTPUT"
fi
env:
FORMAT: image
PACKAGES: test
TTL_SH_PUBLISH: "false"
REGISTRY_PUBLISH: "false"
VERSION: ${{ steps.version.outputs.version }}
unit:
name: Unit Test
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/cache@v5
- uses: actions/checkout@v7
- uses: actions/cache@v6
with:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
path: ${{ env.HOME }}/go/pkg/mod
restore-keys: ${{ runner.os }}-go-
- uses: actions/setup-go@v6
- uses: actions/setup-go@v7
with:
go-version: "1.26"
- name: Install richgo
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pb-update-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.AMP_BUILDPACKS_BOT_GITHUB_TOKEN }}
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Update draft release with buildpack information
uses: docker://ghcr.io/paketo-buildpacks/actions/draft-release:main
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pb-update-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: actions/setup-go@v6
- uses: actions/setup-go@v7
with:
go-version: "1.26"
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Update Go Version & Modules
id: update-go
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pb-update-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on:
- ubuntu-latest
steps:
- uses: actions/setup-go@v6
- uses: actions/setup-go@v7
with:
go-version: "1.26"
- name: Install octo
Expand All @@ -24,7 +24,7 @@ jobs:
set -euo pipefail

go install -ldflags="-s -w" github.com/paketo-buildpacks/pipeline-builder/cmd/octo@latest
- uses: actions/checkout@v6
- uses: actions/checkout@v7
- name: Update Pipeline
id: pipeline
run: |
Expand Down
9 changes: 4 additions & 5 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
set -euo pipefail

GOMOD=$(head -1 go.mod | awk '{print $2}')
GOOS="linux" GOARCH="amd64" go build -ldflags='-s -w' -o linux/amd64/bin/main "$GOMOD/cmd/main"
GOOS="linux" GOARCH="arm64" go build -ldflags='-s -w' -o linux/arm64/bin/main "$GOMOD/cmd/main"
GOOS="linux" GOARCH="amd64" go build -ldflags='-s -w' -o "linux/amd64/bin/main" "$GOMOD/cmd/main"
GOOS="linux" GOARCH="arm64" go build -ldflags='-s -w' -o "linux/arm64/bin/main" "$GOMOD/cmd/main"

if [ "${STRIP:-false}" != "false" ]; then
strip linux/amd64/bin/main linux/arm64/bin/main
Expand All @@ -12,8 +12,7 @@ fi
if [ "${COMPRESS:-none}" != "none" ]; then
$COMPRESS linux/amd64/bin/main linux/arm64/bin/main
fi

ln -fs main linux/amd64/bin/build
ln -fs main linux/arm64/bin/build
ln -fs main linux/amd64/bin/detect
ln -fs main linux/arm64/bin/detect
ln -fs main linux/arm64/bin/build
ln -fs main linux/arm64/bin/detect