From 1436251f6f937ddf2dc45733ae67b89c86c556f5 Mon Sep 17 00:00:00 2001 From: Nikita Elfimov Date: Thu, 19 Dec 2024 17:20:52 +0300 Subject: [PATCH] feat(buildpacks): update, support arm64 --- buildpacks/build.sh | 14 ++++---------- buildpacks/yarn-cache/buildpack.toml | 6 +++++- buildpacks/yarn-install/buildpack.toml | 6 +++++- buildpacks/yarn-workspace-start/buildpack.toml | 6 +++++- buildpacks/yarn-workspace/buildpack.toml | 8 ++++---- buildpacks/yarn-workspace/package.toml | 6 +++--- 6 files changed, 26 insertions(+), 20 deletions(-) diff --git a/buildpacks/build.sh b/buildpacks/build.sh index d5b4af2..90f3643 100755 --- a/buildpacks/build.sh +++ b/buildpacks/build.sh @@ -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 diff --git a/buildpacks/yarn-cache/buildpack.toml b/buildpacks/yarn-cache/buildpack.toml index 8e7d59e..a5b919c 100644 --- a/buildpacks/yarn-cache/buildpack.toml +++ b/buildpacks/yarn-cache/buildpack.toml @@ -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] @@ -12,3 +12,7 @@ pre_package = "yarn build" [[targets]] os = "linux" arch = "amd64" + +[[targets]] +os = "linux" +arch = "arm64" diff --git a/buildpacks/yarn-install/buildpack.toml b/buildpacks/yarn-install/buildpack.toml index b5091a4..ade6c34 100644 --- a/buildpacks/yarn-install/buildpack.toml +++ b/buildpacks/yarn-install/buildpack.toml @@ -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] @@ -12,3 +12,7 @@ pre_package = "yarn build" [[targets]] os = "linux" arch = "amd64" + +[[targets]] +os = "linux" +arch = "arm64" diff --git a/buildpacks/yarn-workspace-start/buildpack.toml b/buildpacks/yarn-workspace-start/buildpack.toml index b3c070c..f9b4a1e 100644 --- a/buildpacks/yarn-workspace-start/buildpack.toml +++ b/buildpacks/yarn-workspace-start/buildpack.toml @@ -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] @@ -11,3 +11,7 @@ include_files = ["dist", "bin/build", "bin/detect", "buildpack.toml"] [[targets]] os = "linux" arch = "amd64" + +[[targets]] +os = "linux" +arch = "arm64" diff --git a/buildpacks/yarn-workspace/buildpack.toml b/buildpacks/yarn-workspace/buildpack.toml index cb7b584..7cc0c5d 100644 --- a/buildpacks/yarn-workspace/buildpack.toml +++ b/buildpacks/yarn-workspace/buildpack.toml @@ -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] @@ -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" diff --git a/buildpacks/yarn-workspace/package.toml b/buildpacks/yarn-workspace/package.toml index 97a1749..27428cc 100644 --- a/buildpacks/yarn-workspace/package.toml +++ b/buildpacks/yarn-workspace/package.toml @@ -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"