-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from initializ-buildpacks/update/pipeline
Bump pipeline from 1.37.5 to 1.41.2
- Loading branch information
Showing
7 changed files
with
38 additions
and
53 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* @initializ-buildpacks/utilities-maintainers | ||
* @paketo-buildpacks/utilities-maintainers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.37.5 | ||
1.41.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,32 +18,21 @@ jobs: | |
username: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME }} | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22" | ||
go-version: "1.23" | ||
- name: Install create-package | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest | ||
- uses: buildpacks/github-actions/setup-tools@v5.5.3 | ||
- uses: buildpacks/github-actions/setup-tools@v5.7.2 | ||
with: | ||
crane-version: 0.19.1 | ||
yj-version: 5.1.0 | ||
- name: Install pack | ||
run: | | ||
#!/usr/bin/env bash | ||
# this is coming from a copy of https://github.com/buildpacks/pack/actions/runs/8118576298 stored on box | ||
# TODO to revisit when the official one is out | ||
set -euo pipefail | ||
echo "Installing pack experimental" | ||
mkdir -p "${HOME}"/bin | ||
echo "${HOME}/bin" >> "${GITHUB_PATH}" | ||
curl -L "https://github.com/buildpacks/pack/releases/download/v0.34.2/pack-v0.34.2-linux.tgz" | tar xvz -C "${HOME}/bin" | ||
chmod +x "${HOME}"/bin/pack | ||
- uses: buildpacks/github-actions/[email protected] | ||
with: | ||
pack-version: 0.34.2 | ||
- name: Enable pack Experimental | ||
if: ${{ false }} | ||
run: | | ||
|
@@ -181,10 +170,10 @@ jobs: | |
else | ||
pack -v buildpack package \ | ||
"${PACKAGE}:${VERSION}" ${CONFIG} \ | ||
--format "${FORMAT}" | ||
--format "${FORMAT}" $([ -n "$TTL_SH_PUBLISH" ] && [ "$TTL_SH_PUBLISH" = "true" ] && echo "--publish") | ||
fi | ||
env: | ||
PACKAGES: docker.io/initializbuildpacks/procfile | ||
PACKAGES: docker.io/initializbuildpacks/procfile | ||
PUBLISH: "true" | ||
VERSION: ${{ steps.version.outputs.version }} | ||
VERSION_MAJOR: ${{ steps.version.outputs.version-major }} | ||
|
@@ -212,7 +201,7 @@ jobs: | |
DIGEST: ${{ steps.package.outputs.digest }} | ||
GITHUB_TOKEN: ${{ secrets.PAT }} | ||
- if: ${{ true }} | ||
uses: docker://ghcr.io/buildpacks/actions/registry/request-add-entry:5.6.0 | ||
uses: docker://ghcr.io/buildpacks/actions/registry/request-add-entry:5.7.2 | ||
with: | ||
address: docker.io/initializbuildpacks/procfile@${{ steps.package.outputs.digest }} | ||
id: initializ-buildpacks/procfile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,30 +15,26 @@ jobs: | |
runs-on: | ||
- ubuntu-latest | ||
steps: | ||
- name: Docker login docker.io | ||
if: ${{ (github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork) && (github.actor != 'dependabot[bot]') }} | ||
uses: docker/login-action@v3 | ||
with: | ||
password: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_PASSWORD }} | ||
registry: docker.io | ||
username: ${{ secrets.INITIALIZ_BUILDPACKS_DOCKERHUB_USERNAME }} | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22" | ||
go-version: "1.23" | ||
- name: Install create-package | ||
run: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
go install -ldflags="-s -w" github.com/paketo-buildpacks/libpak/cmd/create-package@latest | ||
- name: Install pack | ||
run: | | ||
#!/usr/bin/env bash | ||
# this is coming from a copy of https://github.com/buildpacks/pack/actions/runs/8118576298 stored on box | ||
# TODO to revisit when the official one is out | ||
set -euo pipefail | ||
echo "Installing pack experimental" | ||
mkdir -p "${HOME}"/bin | ||
echo "${HOME}/bin" >> "${GITHUB_PATH}" | ||
curl -L "https://github.com/buildpacks/pack/releases/download/v0.34.2/pack-v0.34.2-linux.tgz" | tar xvz -C "${HOME}/bin" | ||
chmod +x "${HOME}"/bin/pack | ||
- uses: buildpacks/github-actions/[email protected] | ||
with: | ||
pack-version: 0.34.2 | ||
- name: Enable pack Experimental | ||
if: ${{ false }} | ||
run: | | ||
|
@@ -173,7 +169,7 @@ jobs: | |
else | ||
pack -v buildpack package \ | ||
"${PACKAGE}:${VERSION}" ${CONFIG} \ | ||
--format "${FORMAT}" | ||
--format "${FORMAT}" $([ -n "$TTL_SH_PUBLISH" ] && [ "$TTL_SH_PUBLISH" = "true" ] && echo "--publish") | ||
fi | ||
env: | ||
FORMAT: image | ||
|
@@ -193,7 +189,7 @@ jobs: | |
restore-keys: ${{ runner.os }}-go- | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.22" | ||
go-version: "1.23" | ||
- name: Install richgo | ||
run: | | ||
#!/usr/bin/env bash | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
GOOS="linux" go build -ldflags='-s -w' -o bin/main github.com/initializ-buildpacks/procfile/v5/cmd/main | ||
GOOS="windows" GOARCH="amd64" go build -ldflags='-s -w' -o bin/main.exe github.com/initializ-buildpacks/procfile/v5/cmd/main | ||
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" | ||
|
||
if [ "${STRIP:-false}" != "false" ]; then | ||
strip bin/main bin/main.exe | ||
strip linux/amd64/bin/main linux/arm64/bin/main | ||
fi | ||
|
||
if [ "${COMPRESS:-none}" != "none" ]; then | ||
$COMPRESS bin/main bin/main.exe | ||
$COMPRESS linux/amd64/bin/main linux/arm64/bin/main | ||
fi | ||
|
||
ln -fs main bin/build | ||
ln -fs main bin/detect | ||
ln -fs main.exe bin/build.exe | ||
ln -fs main.exe bin/detect.exe | ||
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 |