Browse Source

up build docker

ljw 1 year ago
parent
commit
a40733424f
1 changed files with 8 additions and 2 deletions
  1. 8 2
      .github/workflows/build.yml

+ 8 - 2
.github/workflows/build.yml

@@ -123,6 +123,12 @@ jobs:
123 123
         id: vars
124 124
         run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
125 125
 
126
+      - name: Extract metadata (tags, labels) for Docker
127
+        id: meta
128
+        uses: docker/metadata-action@v4
129
+        with:
130
+          images: lejianwen/rustdesk-api
131
+
126 132
       - name: Download binaries
127 133
         uses: actions/download-artifact@v4
128 134
         with:
@@ -143,6 +149,8 @@ jobs:
143 149
           tags: |
144 150
             lejianwen/rustdesk-api:latest-${{ matrix.job.platform }}
145 151
             lejianwen/rustdesk-api:${{ env.TAG }}-${{ matrix.job.platform }}
152
+          labels: ${{ steps.meta.outputs.labels }}
153
+
146 154
   docker-manifest:
147 155
     name: Push Docker Manifest
148 156
     needs: docker
@@ -152,8 +160,6 @@ jobs:
152 160
         id: vars
153 161
         run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
154 162
 
155
-
156
-
157 163
       - name: Log in to Docker Hub
158 164
         uses: docker/login-action@v2
159 165
         with: