Skip to content

Commit

Permalink
ci(all): fix docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
NexZhu committed Dec 12, 2023
1 parent 4579ab7 commit f15bf65
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 23 deletions.
9 changes: 7 additions & 2 deletions apps/desktop/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@
"metadata": {
"images": [
"daotl/web-monorepo-starter-desktop"
],
"tags": [
"type=match,pattern=v(.*),group=1",
"type=edge,branch=main",
"type=sha,enable={{is_default_branch}},prefix=sha-",
]
}
// "cache-from": ["type=registry,ref=daotl/web-monorepo-starter-desktop:buildcache-${{ github.ref_name }}"],
// "cache-to": ["type=registry,ref=daotl/web-monorepo-starter-desktop:buildcache-${{ github.ref_name }},mode=max"]
// "cache-from": ["type=registry,ref=daotl/web-monorepo-starter-desktop:buildcache-{{branch}}"],
// "cache-to": ["type=registry,ref=daotl/web-monorepo-starter-desktop:buildcache-{{branch}},mode=max"]
}
}
}
Expand Down
9 changes: 7 additions & 2 deletions apps/web/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@
"metadata": {
"images": [
"daotl/web-monorepo-starter-web"
],
"tags": [
"type=match,pattern=v(.*),group=1",
"type=edge,branch=main",
"type=sha,enable={{is_default_branch}},prefix=sha-"
]
}
// "cache-from": ["type=registry,ref=daotl/web-monorepo-starter-web:buildcache-${{ github.ref_name }}"],
// "cache-to": ["type=registry,ref=daotl/web-monorepo-starter-web:buildcache-${{ github.ref_name }},mode=max"]
// "cache-from": ["type=registry,ref=daotl/web-monorepo-starter-web:buildcache-{{branch}}"],
// "cache-to": ["type=registry,ref=daotl/web-monorepo-starter-web:buildcache-{{branch}},mode=max"]
}
}
}
Expand Down
11 changes: 2 additions & 9 deletions nx.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ const config = {
},

lint: {
input: [...inputsIgnore],
inputs: [...inputsIgnore],
cache: true,
},
'lint:fix': {
input: [...inputsIgnore],
inputs: [...inputsIgnore],
cache: true,
},

Expand All @@ -69,13 +69,6 @@ const config = {
ci: {
load: false,
push: true,
metadata: {
tags: [
'type=match,pattern=v(.*),group=1',
'type=edge,branch=main',
'type=sha,enable={{is_default_branch}},prefix=sha-',
],
},
},
},
},
Expand Down
13 changes: 3 additions & 10 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
"cache": false
},
"lint": {
"input": [],
"inputs": [],
"cache": true
},
"lint:fix": {
"input": [],
"inputs": [],
"cache": true
},
"container": {
Expand All @@ -67,14 +67,7 @@
"configurations": {
"ci": {
"load": false,
"push": true,
"metadata": {
"tags": [
"type=match,pattern=v(.*),group=1",
"type=edge,branch=main",
"type=sha,enable={{is_default_branch}},prefix=sha-"
]
}
"push": true
}
}
},
Expand Down

0 comments on commit f15bf65

Please sign in to comment.