-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Daniel Mikusa <[email protected]>
- Loading branch information
Showing
7 changed files
with
54 additions
and
64 deletions.
There are no files selected for viewing
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.DOCKER_USER }} | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.20" | ||
go-version: "1.22" | ||
- 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.0 | ||
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://ent.box.com/shared/static/j4d1bfe9uk1sb0i7zjvci0md9xmy41u4" -o ${HOME}/bin/pack | ||
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,7 +170,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: | ||
PACKAGES: docker.io/buildpacksio/profile | ||
|
@@ -212,7 +201,7 @@ jobs: | |
DIGEST: ${{ steps.package.outputs.digest }} | ||
GITHUB_TOKEN: ${{ secrets.IMPLEMENTATION_GITHUB_TOKEN }} | ||
- if: ${{ true }} | ||
uses: docker://ghcr.io/buildpacks/actions/registry/request-add-entry:5.5.3 | ||
uses: docker://ghcr.io/buildpacks/actions/registry/request-add-entry:5.7.2 | ||
with: | ||
address: docker.io/buildpacksio/profile@${{ steps.package.outputs.digest }} | ||
id: buildpacksio/profile | ||
|
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 |
---|---|---|
|
@@ -24,28 +24,17 @@ jobs: | |
username: ${{ secrets.DOCKER_USER }} | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.20" | ||
go-version: "1.22" | ||
- 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://ent.box.com/shared/static/j4d1bfe9uk1sb0i7zjvci0md9xmy41u4" -o ${HOME}/bin/pack | ||
chmod +x "${HOME}"/bin/pack | ||
- uses: buildpacks/github-actions/[email protected] | ||
with: | ||
pack-version: 0.34.2 | ||
- name: Enable pack Experimental | ||
if: ${{ false }} | ||
run: | | ||
|
@@ -180,11 +169,12 @@ 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 | ||
PACKAGES: test | ||
TTL_SH_PUBLISH: "false" | ||
VERSION: ${{ steps.version.outputs.version }} | ||
unit: | ||
name: Unit Test | ||
|
@@ -199,7 +189,7 @@ jobs: | |
restore-keys: ${{ runner.os }}-go- | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "1.20" | ||
go-version: "1.22" | ||
- 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
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,16 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
GOOS="linux" go build -ldflags='-s -w' -o bin/main github.com/buildpacks/profile/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 | ||
strip linux/amd64/bin/main linux/arm64/bin/main | ||
fi | ||
|
||
if [ "${COMPRESS:-none}" != "none" ]; then | ||
$COMPRESS bin/main | ||
$COMPRESS linux/amd64/bin/main linux/arm64/bin/main | ||
fi | ||
|
||
ln -fs main bin/build | ||
ln -fs main bin/detect | ||
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 |