Skip to content

Commit

Permalink
chore(workflow): add build-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh committed Mar 18, 2024
1 parent 369e000 commit 5259895
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
4 changes: 2 additions & 2 deletions packages/solana-container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
"*": [
Expand Down

0 comments on commit 5259895

Please sign in to comment.