From 7bb11bfd62157d05eadff3eb63710d9972c5d748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= <37316281+yanhao98@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20context:=20'git'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 1 - docker-build-push/action.yml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40bbaf8..8d7b59d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,6 +50,5 @@ jobs: - name: Check Docker image run: | set -x; - echo ${{ github.repository }}; docker images; docker run --rm ${{ steps.docker-build-push.outputs.imageid }} whoami; diff --git a/docker-build-push/action.yml b/docker-build-push/action.yml index 765a02e..8599327 100644 --- a/docker-build-push/action.yml +++ b/docker-build-push/action.yml @@ -42,8 +42,12 @@ runs: id: meta uses: docker/metadata-action@v5 # https://github.com/docker/metadata-action with: + context: 'git' + # flavor images: ${{ inputs.metadata_images }} tags: ${{ inputs.metadata_tags }} + sep-tags: '\n' + sep-labels: '\n' - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx