From 243032469d70a880096798ea2fda1813c54db3d3 Mon Sep 17 00:00:00 2001 From: "Ronald A. Richardson" Date: Wed, 2 Aug 2023 20:22:05 +0800 Subject: [PATCH] try the docker-bake method --- .github/workflows/ci.yml | 4 ---- docker-bake.hcl | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 945b5c89..a718efe0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,3 @@ jobs: with: files: | ./docker-bake.hcl - set: | - *.secrets.type=file - *.secrets.id=composer_auth - *.secrets.src=composer-auth.json diff --git a/docker-bake.hcl b/docker-bake.hcl index 854fa39e..270bc532 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -25,6 +25,10 @@ target "app" { "${REGISTRY}:${tgt}-%s", compact(["latest", VERSION]) ) : [] + + secret = [ + "type=file,id=composer_auth,src=${HOME}/.composer/auth.json" + ] } target "app-httpd" {