Skip to content
This repository was archived by the owner on Oct 3, 2024. It is now read-only.

Commit 3fba752

Browse files
authored
Updating builder.toml and github-config (#6)
* Update builder.toml * Updating github-config
1 parent e650d29 commit 3fba752

File tree

3 files changed

+22
-27
lines changed

3 files changed

+22
-27
lines changed

.github/workflows/push-image.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,17 @@ jobs:
3030
with:
3131
pack-version: ${{ steps.pack-version.outputs.version }}
3232

33-
- name: Install crane
34-
run: |
35-
VERSION=$(curl -s "https://api.github.com/repos/google/go-containerregistry/releases/latest" | jq -r '.tag_name')
36-
OS=Linux
37-
ARCH=x86_64
38-
curl -sL "https://github.com/google/go-containerregistry/releases/download/${VERSION}/go-containerregistry_${OS}_${ARCH}.tar.gz" > go-containerregistry.tar.gz
39-
tar -zxvf go-containerregistry.tar.gz -C "${HOME}/bin" crane
40-
chmod +x "${HOME}/bin/crane"
41-
4233
- name: Enable Experimental Pack Features
4334
run: |
4435
if [ -f "scripts/options.json" ] && jq -e -r .pack_config_enable_experimental "scripts/options.json" > /dev/null; then
4536
pack config experimental true
4637
fi
4738
48-
- name: Create Builder Image and Push To Dockerhub
39+
- name: Create Builder Image
40+
run: |
41+
pack builder create builder --config builder.toml
42+
43+
- name: Push To Dockerhub
4944
env:
5045
PAKETO_BUILDPACKS_DOCKERHUB_USERNAME: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_USERNAME }}
5146
PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD: ${{ secrets.PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD }}
@@ -55,13 +50,13 @@ jobs:
5550
# Strip off the Github org prefix from repo name
5651
# paketo-buildpacks/builder-with-some-name --> builder-with-some-name
5752
registry_repo=$(echo "${{ github.repository }}" | sed 's/^.*\///')
58-
53+
5954
echo "${PAKETO_BUILDPACKS_DOCKERHUB_PASSWORD}" | docker login --username "${PAKETO_BUILDPACKS_DOCKERHUB_USERNAME}" --password-stdin
60-
61-
# In order to publish multi-arch builders with pack, the builder MUST be published.
62-
# It cannot be created locally and then pushed
63-
pack builder create "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}" --config builder.toml --publish
64-
crane copy "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}" "${DOCKERHUB_ORG}/${registry_repo}:latest"
55+
docker tag builder "${DOCKERHUB_ORG}/${registry_repo}:latest"
56+
docker tag builder "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}"
57+
58+
docker push "${DOCKERHUB_ORG}/${registry_repo}:latest"
59+
docker push "${DOCKERHUB_ORG}/${registry_repo}:${{ steps.event.outputs.tag }}"
6560
6661
failure:
6762
name: Alert on Failure

builder.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
description = "Ubuntu 24.04 Noble Numbat tiny image with only Java buildpacks included. To use, specify buildpacks at build time."
22

33
[[buildpacks]]
4-
uri = "docker://gcr.io/paketo-buildpacks/java-native-image:9.8.0"
5-
version = "9.8.0"
4+
uri = "docker://gcr.io/paketo-buildpacks/java-native-image:10.0.0"
5+
version = "10.0.0"
66

77
[[buildpacks]]
8-
uri = "docker://gcr.io/paketo-buildpacks/java:15.2.0"
9-
version = "15.2.0"
8+
uri = "docker://gcr.io/paketo-buildpacks/java:16.0.0"
9+
version = "16.0.0"
1010

1111
[lifecycle]
12-
version = "0.20.0"
12+
version = "0.20.2"
1313

1414
[[order]]
1515

1616
[[order.group]]
1717
id = "paketo-buildpacks/java-native-image"
18-
version = "9.8.0"
18+
version = "10.0.0"
1919

2020
[[order]]
2121

2222
[[order.group]]
2323
id = "paketo-buildpacks/java"
24-
version = "15.2.0"
24+
version = "16.0.0"
2525

2626
[stack]
27-
build-image = "docker.io/paketobuildpacks/build-noble-tiny:0.0.5"
27+
build-image = "docker.io/paketobuildpacks/build-noble-tiny:0.0.14"
2828
id = "io.buildpacks.stacks.noble.tiny"
2929
run-image = "index.docker.io/paketobuildpacks/run-noble-tiny:latest"
3030
run-image-mirrors = []

scripts/.util/tools.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"pack": "v0.34.2",
3-
"crane": "v0.19.2"
4-
}
2+
"crane": "v0.20.2",
3+
"pack": "v0.35.1"
4+
}

0 commit comments

Comments
 (0)