mirror of
https://github.com/fleetbase/fleetbase.git
synced 2025-12-19 22:27:22 +00:00
fix docker bake build for cd
This commit is contained in:
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
@@ -55,7 +55,7 @@ jobs:
|
||||
with:
|
||||
push: true
|
||||
set:
|
||||
*.args.GITHUB_AUTH_KEY: ${{ env.GITHUB_AUTH_KEY }}
|
||||
GITHUB_AUTH_KEY: ${{ env.GITHUB_AUTH_KEY }}
|
||||
files: |
|
||||
./docker-bake.hcl
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
variable "REGISTRY" { default = "" }
|
||||
variable "VERSION" { default = "latest" }
|
||||
variable "CACHE" { default = "" }
|
||||
variable "GCP" { default = false }
|
||||
variable "CACHE" { default = "" }
|
||||
variable "GITHUB_AUTH_KEY" { default = "" }
|
||||
|
||||
group "default" {
|
||||
targets = ["app", "app-httpd"]
|
||||
@@ -32,6 +33,10 @@ target "app" {
|
||||
"type=file,id=composer_auth,src=./composer-auth.json"
|
||||
]
|
||||
|
||||
args = {
|
||||
GITHUB_AUTH_KEY = "${GITHUB_AUTH_KEY}"
|
||||
}
|
||||
|
||||
cache-from = notequal("", CACHE) ? ["${CACHE}"] : []
|
||||
cache-to = notequal("", CACHE) ? ["${CACHE},mode=max,ignore-error=true"] : []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user