From 85c83772402f92f721c066ee01b6fdbf1e74beb1 Mon Sep 17 00:00:00 2001 From: ljw <84855512@qq.com> Date: Fri, 27 Sep 2024 16:52:02 +0800 Subject: [PATCH] up build docker --- .github/workflows/build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c28e936..ed7754f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,6 +123,12 @@ jobs: id: vars run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v4 + with: + images: lejianwen/rustdesk-api + - name: Download binaries uses: actions/download-artifact@v4 with: @@ -143,6 +149,8 @@ jobs: tags: | lejianwen/rustdesk-api:latest-${{ matrix.job.platform }} lejianwen/rustdesk-api:${{ env.TAG }}-${{ matrix.job.platform }} + labels: ${{ steps.meta.outputs.labels }} + docker-manifest: name: Push Docker Manifest needs: docker @@ -152,8 +160,6 @@ jobs: id: vars run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV - - - name: Log in to Docker Hub uses: docker/login-action@v2 with: