Skip to content

Commit

Permalink
feat(buildpacks): update, support arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelfimov committed Dec 19, 2024
1 parent cdf10c0 commit 1436251
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 20 deletions.
14 changes: 4 additions & 10 deletions buildpacks/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,12 @@ set -e
cwd=$PWD

yarn workspace @atls/buildpack-yarn-install build
cd "${cwd}/yarn-install" && pack buildpack package atlantislab/buildpack-yarn-install:0.1.0 --config ./package.toml
cd "${cwd}/yarn-install" && pack buildpack package atlantislab/buildpack-yarn-install:0.1.1 --config ./package.toml --publish

yarn workspace @atls/buildpack-yarn-cache build
cd "${cwd}/yarn-cache" && pack buildpack package atlantislab/buildpack-yarn-cache:0.1.0 --config ./package.toml
cd "${cwd}/yarn-cache" && pack buildpack package atlantislab/buildpack-yarn-cache:0.1.1 --config ./package.toml --publish

yarn workspace @atls/buildpack-yarn-workspace-start build
cd "${cwd}/yarn-workspace-start" && pack buildpack package atlantislab/buildpack-yarn-workspace-start:0.1.0 --config ./package.toml
cd "${cwd}/yarn-workspace-start" && pack buildpack package atlantislab/buildpack-yarn-workspace-start:0.1.1 --config ./package.toml --publish

docker push atlantislab/buildpack-yarn-install:0.1.0
docker push atlantislab/buildpack-yarn-cache:0.1.0
docker push atlantislab/buildpack-yarn-workspace-start:0.1.0

cd "${cwd}/yarn-workspace" && pack buildpack package atlantislab/buildpack-yarn-workspace:0.1.0 --config ./package.toml

docker push atlantislab/buildpack-yarn-workspace:0.1.0
cd "${cwd}/yarn-workspace" && pack buildpack package atlantislab/buildpack-yarn-workspace:0.1.1 --config ./package.toml --target 'linux/amd64' --target 'linux/arm64' --publish
6 changes: 5 additions & 1 deletion buildpacks/yarn-cache/buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ api = "0.10"

[buildpack]
id = "tech.atlantislab.buildpacks.yarn-cache"
version = "0.1.0"
version = "0.1.1"
name = "Yarn Workspace Pack Buildpack"

[metadata]
Expand All @@ -12,3 +12,7 @@ pre_package = "yarn build"
[[targets]]
os = "linux"
arch = "amd64"

[[targets]]
os = "linux"
arch = "arm64"
6 changes: 5 additions & 1 deletion buildpacks/yarn-install/buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ api = "0.10"

[buildpack]
id = "tech.atlantislab.buildpacks.yarn-install"
version = "0.1.0"
version = "0.1.1"
name = "Yarn Install Buildpack"

[metadata]
Expand All @@ -12,3 +12,7 @@ pre_package = "yarn build"
[[targets]]
os = "linux"
arch = "amd64"

[[targets]]
os = "linux"
arch = "arm64"
6 changes: 5 additions & 1 deletion buildpacks/yarn-workspace-start/buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ api = "0.10"

[buildpack]
id = "tech.atlantislab.buildpacks.yarn-workspace-start"
version = "0.1.0"
version = "0.1.1"
name = "Yarn Workspace Start Buildpack"

[metadata]
Expand All @@ -11,3 +11,7 @@ include_files = ["dist", "bin/build", "bin/detect", "buildpack.toml"]
[[targets]]
os = "linux"
arch = "amd64"

[[targets]]
os = "linux"
arch = "arm64"
8 changes: 4 additions & 4 deletions buildpacks/yarn-workspace/buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ api = "0.10"

[buildpack]
id = "tech.atlantislab.buildpacks.yarn-workspace"
version = "0.1.0"
version = "0.1.1"
name = "Yarn Workspace Buildpack"

[metadata]
Expand All @@ -12,13 +12,13 @@ include_files = ["buildpack.toml"]
[[order.group]]
id = "tech.atlantislab.buildpacks.yarn-install"
optional = true
version = "0.1.0"
version = "0.1.1"

[[order.group]]
id = "tech.atlantislab.buildpacks.yarn-cache"
optional = true
version = "0.1.0"
version = "0.1.1"

[[order.group]]
id = "tech.atlantislab.buildpacks.yarn-workspace-start"
version = "0.1.0"
version = "0.1.1"
6 changes: 3 additions & 3 deletions buildpacks/yarn-workspace/package.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
uri = "."

[[dependencies]]
uri = "docker://docker.io/atlantislab/buildpack-yarn-install:0.1.0"
uri = "docker://docker.io/atlantislab/buildpack-yarn-install:0.1.1"

[[dependencies]]
uri = "docker://docker.io/atlantislab/buildpack-yarn-cache:0.1.0"
uri = "docker://docker.io/atlantislab/buildpack-yarn-cache:0.1.1"

[[dependencies]]
uri = "docker://docker.io/atlantislab/buildpack-yarn-workspace-start:0.1.0"
uri = "docker://docker.io/atlantislab/buildpack-yarn-workspace-start:0.1.1"

0 comments on commit 1436251

Please sign in to comment.