mirror of
https://github.com/fleetbase/fleetbase.git
synced 2025-12-19 22:27:22 +00:00
Use docker layer cache
This commit is contained in:
1
.github/workflows/cd.yml
vendored
1
.github/workflows/cd.yml
vendored
@@ -58,6 +58,7 @@ jobs:
|
||||
env:
|
||||
REGISTRY: ${{ steps.login-ecr.outputs.registry }}/${{ env.PROJECT }}-${{ env.STACK }}
|
||||
VERSION: ${{ env.VERSION }}
|
||||
CACHE: type=gha
|
||||
with:
|
||||
push: true
|
||||
files: |
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// docker-bake.hcl
|
||||
variable "REGISTRY" { default = "" }
|
||||
variable "VERSION" { default = "latest" }
|
||||
variable "CACHE" { default = "" }
|
||||
|
||||
group "default" {
|
||||
targets = ["app", "app-httpd"]
|
||||
@@ -29,6 +30,9 @@ target "app" {
|
||||
secret = [
|
||||
"type=file,id=composer_auth,src=./composer-auth.json"
|
||||
]
|
||||
|
||||
cache-from = notequal("", CACHE) ? ["${CACHE}"] : []
|
||||
cache-to = notequal("", CACHE) ? ["${CACHE},mode=max,ignore-error=true"] : []
|
||||
}
|
||||
|
||||
target "app-httpd" {
|
||||
|
||||
Reference in New Issue
Block a user