From fed8c44dbbf6baa6dc8c2721484c58236d34fc77 Mon Sep 17 00:00:00 2001 From: Tommaso Bailetti Date: Mon, 22 Apr 2024 15:34:12 +0200 Subject: [PATCH] ci: fixed issue with metadata --- .github/workflows/build.yml | 6 ++++-- docker-bake.hcl | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fce4284..d4c4444 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,7 @@ jobs: uses: docker/metadata-action@v5 id: meta with: + bake-target: production images: | ghcr.io/${{ github.repository }} tags: | @@ -38,10 +39,11 @@ jobs: - uses: docker/bake-action@v4 with: + targets: production files: | ./docker-bake.hcl - ${{ steps.meta-app.outputs.bake-file }} + ${{ steps.meta.outputs.bake-file }} set: | *.cache-to=type=gha,mode=max *.cache-from=type=gha - push: true + *.output=type=registry diff --git a/docker-bake.hcl b/docker-bake.hcl index 1371c63..998dadc 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -8,7 +8,6 @@ target "production" { tags = [ "ghcr.io/nethesis/parceler:latest" ] - } group "default" {