Skip to content
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
d331d60
Updating github-config
paketo-bot Jul 2, 2024
33ea15e
Updating github-config
paketo-bot Jul 3, 2024
6904391
Updating github-config
paketo-bot Jul 11, 2024
bc7238e
Updating github-config
paketo-bot Jul 12, 2024
11ab18b
Updating github-config
paketo-bot Sep 4, 2024
7959b5f
Updating github-config
paketo-bot Sep 10, 2024
8796cb8
Updating github-config
paketo-bot Oct 11, 2024
d7b95d9
Updating github-config
paketo-bot Oct 18, 2024
eab3076
Updating github-config
paketo-bot Nov 23, 2024
86126c5
Updating github-config
paketo-bot Nov 28, 2024
bb84658
Updating github-config
paketo-bot Dec 7, 2024
0be0321
Updating github-config
paketo-bot Dec 13, 2024
dbb53cc
Updating github-config
paketo-bot Dec 18, 2024
2db0e72
Updating github-config
paketo-bot Dec 28, 2024
fd948de
Updating github-config
paketo-bot Jan 7, 2025
aa13057
Updating github-config
paketo-bot Jan 16, 2025
9a5471d
Updating github-config
paketo-bot Jan 19, 2025
0824ed2
Updating github-config
paketo-bot Feb 28, 2025
e42e8b6
Updating github-config
paketo-bot Mar 23, 2025
3167559
Updating github-config
paketo-bot Mar 31, 2025
60634eb
Updating github-config
paketo-bot Apr 10, 2025
55f151a
Updating github-config
paketo-bot May 2, 2025
854349b
Updating github-config
paketo-bot May 17, 2025
99486c6
Updating github-config
paketo-bot May 18, 2025
86b959f
Updating github-config
paketo-bot Jun 10, 2025
05d3693
Updating github-config
paketo-bot Jun 15, 2025
5903971
Updating github-config
paketo-bot Jun 17, 2025
62b4a8e
Updating github-config
paketo-bot Jun 20, 2025
c2bafef
Updating github-config
paketo-bot Jun 29, 2025
7c75887
Updating github-config
paketo-bot Jul 8, 2025
1413cc2
Updating github-config
paketo-bot Jul 15, 2025
d1a4d8d
Updating github-config
paketo-bot Jul 18, 2025
8aeee11
Updating github-config
paketo-bot Jul 19, 2025
2d697cf
Updating github-config
paketo-bot Jul 22, 2025
c2a7820
Updating github-config
paketo-bot Jul 30, 2025
1701f04
Updating github-config
paketo-bot Aug 13, 2025
25e4f71
Updating github-config
paketo-bot Aug 14, 2025
babb076
Updating github-config
paketo-bot Aug 16, 2025
0295f84
Updating github-config
paketo-bot Aug 22, 2025
ce425f5
Updating github-config
paketo-bot Aug 23, 2025
2e58fa4
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
18 changes: 18 additions & 0 deletions .github/workflows/create-draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,19 @@ jobs:
uses: actions/setup-go@v3
with:
go-version: 'stable'

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

- 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 Down
27 changes: 27 additions & 0 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
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=true

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 Down
2 changes: 2 additions & 0 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
uses: actions/checkout@v3

- name: Run Unit Tests
env:
GO_TEST_PARAMS: -count=5
run: ./scripts/unit.sh

- name: Get builders from integration.json
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update-go-mod-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: current-go-version
uses: paketo-buildpacks/github-config/actions/update-go-mod-version@main
with:
toolchain-version: ${{ steps.setup-go.outputs.go-version }}
go-version: ${{ steps.setup-go.outputs.go-version }}
- name: Go mod tidy
run: |
#!/usr/bin/env bash
Expand All @@ -54,7 +54,7 @@ jobs:
id: commit
uses: paketo-buildpacks/github-config/actions/pull-request/create-commit@main
with:
message: "Updates go mod toolchain version to ${{ steps.setup-go.outputs.go-version }}"
message: "Updates go mod version to ${{ steps.setup-go.outputs.go-version }}"
pathspec: "."
keyid: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY_ID }}
key: ${{ secrets.PAKETO_BOT_GPG_SIGNING_KEY }}
Expand All @@ -70,7 +70,7 @@ jobs:
uses: paketo-buildpacks/github-config/actions/pull-request/open@main
with:
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
title: "Updates go mod toolchain version to ${{ steps.setup-go.outputs.go-version }}"
title: "Updates go mod version to ${{ steps.setup-go.outputs.go-version }}"
branch: automation/go-mod-update/update-main

failure:
Expand Down
6 changes: 3 additions & 3 deletions scripts/.util/tools.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"createpackage": "v1.70.0",
"jam": "v2.8.0",
"pack": "v0.34.2"
"createpackage": "v1.71.0",
"jam": "v2.9.0",
"pack": "v0.35.1"
}
4 changes: 3 additions & 1 deletion scripts/unit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ set -o pipefail
readonly PROGDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
readonly BUILDPACKDIR="$(cd "${PROGDIR}/.." && pwd)"

GO_TEST_PARAMS="${GO_TEST_PARAMS:-}"

# shellcheck source=SCRIPTDIR/.util/tools.sh
source "${PROGDIR}/.util/tools.sh"

Expand Down Expand Up @@ -50,7 +52,7 @@ function unit::run() {

testout=$(mktemp)
pushd "${BUILDPACKDIR}" > /dev/null
if go test ./... -v -run Unit | tee "${testout}"; then
if go test ./... -v ${GO_TEST_PARAMS} -run Unit | tee "${testout}"; then
util::tools::tests::checkfocus "${testout}"
util::print::success "** GO Test Succeeded **"
else
Expand Down
Loading