up build docker

This commit is contained in:
ljw
2024-09-27 16:52:02 +08:00
parent 264ae2dffa
commit 85c8377240

View File

@@ -123,6 +123,12 @@ jobs:
id: vars id: vars
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV 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 - name: Download binaries
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with: with:
@@ -143,6 +149,8 @@ jobs:
tags: | tags: |
lejianwen/rustdesk-api:latest-${{ matrix.job.platform }} lejianwen/rustdesk-api:latest-${{ matrix.job.platform }}
lejianwen/rustdesk-api:${{ env.TAG }}-${{ matrix.job.platform }} lejianwen/rustdesk-api:${{ env.TAG }}-${{ matrix.job.platform }}
labels: ${{ steps.meta.outputs.labels }}
docker-manifest: docker-manifest:
name: Push Docker Manifest name: Push Docker Manifest
needs: docker needs: docker
@@ -152,8 +160,6 @@ jobs:
id: vars id: vars
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Log in to Docker Hub - name: Log in to Docker Hub
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with: