Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(workflow): add build-cache #8

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading