From 525989534de1321b2b5598fa2cf9be08bb381373 Mon Sep 17 00:00:00 2001 From: Fuxing Loh Date: Mon, 18 Mar 2024 17:22:45 +0800 Subject: [PATCH] chore(workflow): add build-cache --- .github/labeler.yml | 12 ++++++------ .github/workflows/release.yml | 2 +- packages/solana-container/package.json | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 9abe3e8..d4b6560 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -4,27 +4,27 @@ labels: - label: kind/feature sync: true matcher: - title: "^feat\\(.+\\)?: .+" + title: "^feat(\\(.+\\))?: .+" - label: kind/fix sync: true matcher: - title: "^fix\\(.+\\)?: .+" + title: "^fix(\\(.+\\))?: .+" - label: kind/chore sync: true matcher: - title: "^chore\\(.+\\)?: .+" + title: "^chore(\\(.+\\))?: .+" - label: kind/refactor sync: true matcher: - title: "^refactor\\(.+\\)?: .+" + title: "^refactor(\\(.+\\))?: .+" - label: kind/docs sync: true matcher: - title: "^docs\\(.+\\)?: .+" + title: "^docs(\\(.+\\))?: .+" - label: kind/dependencies sync: true @@ -35,7 +35,7 @@ checks: - context: 'Semantic Pull Request' description: success: Ready for review & merge. - failure: 'Missing semantic title or label for merge [kind(directory): title]' + failure: 'Missing semantic title for merge [kind(directory): title]' labels: any: - kind/feature diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a46ccdf..c27b14e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -96,4 +96,4 @@ jobs: - run: pnpm -r exec npm version ${{ needs.version.outputs.result }} --git-tag-version=false - - run: pnpm turbo run push:docker --filter=${{ matrix.package }} --concurrency=1 + - run: pnpm turbo run push:docker --filter=${{ matrix.package }} diff --git a/packages/solana-container/package.json b/packages/solana-container/package.json index 85fff40..2587ccc 100644 --- a/packages/solana-container/package.json +++ b/packages/solana-container/package.json @@ -4,8 +4,8 @@ "private": true, "license": "MPL-2.0", "scripts": { - "build:docker": "docker build -t ghcr.io/fuxingloh/solana-container:$(node -p \"require('./version.js')\") -f Dockerfile ../../ --build-arg SOLANA_VERSION=$(node -p \"require('./version.js')\")", - "push:docker": "docker buildx build -t ghcr.io/fuxingloh/solana-container:$(node -p \"require('./version.js')\") -f Dockerfile ../../ --output type=registry --platform linux/amd64,linux/arm64 --build-arg SOLANA_VERSION=$(node -p \"require('./version.js')\")" + "build:docker": "docker buildx build -t ghcr.io/fuxingloh/solana-container:$(node -p \"require('./version.js')\") -f Dockerfile ../../ --build-arg SOLANA_VERSION=$(node -p \"require('./version.js')\") --cache-from type=registry,ref=ghcr.io/fuxingloh/solana-container:build-cache", + "push:docker": "docker buildx build -t ghcr.io/fuxingloh/solana-container:$(node -p \"require('./version.js')\") -f Dockerfile ../../ --output type=registry --platform linux/amd64,linux/arm64 --build-arg SOLANA_VERSION=$(node -p \"require('./version.js')\") --cache-to type=registry,ref=ghcr.io/fuxingloh/solana-container:build-cache,mode=max --cache-from type=registry,ref=ghcr.io/fuxingloh/solana-container:build-cache" }, "lint-staged": { "*": [