Skip to content

Modular logistics and supply chain operating system (LSOS)

fix docker bake build for cd

Ronald A. Richardson7f9b09f67359
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml
index 558932fd..e612a78b 100644
--- a/.github/workflows/cd.yml
+++ b/.github/workflows/cd.yml
@@ -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
diff --git a/docker-bake.hcl b/docker-bake.hcl
index 0a31e1ba..11a230b6 100644
--- a/docker-bake.hcl
+++ b/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"] : []
}