Browse Source

up build docker

ljw 1 year ago
parent
commit
bd084ced52
1 changed files with 23 additions and 23 deletions
  1. 23 23
      .github/workflows/build.yml

+ 23 - 23
.github/workflows/build.yml

@@ -148,34 +148,34 @@ jobs:
148 148
         with:
149 149
           context: "."
150 150
           file: ./Dockerfile
151
-          platforms: ${{ matrix.job.docker_platform }}
151
+          platforms: ["linux/amd64", "linux/arm64"]
152 152
           push: true
153
-          tags: lejianwen/rustdesk-api:${{ env.TAG }}-${{ matrix.job.platform }}
153
+          tags: lejianwen/rustdesk-api:${{ env.TAG }}
154 154
           #           lejianwen/rustdesk-api:${{ env.LATEST_TAG }}
155 155
           #            lejianwen/rustdesk-api:${{ env.TAG }}-${{ matrix.job.docker_platform }}
156 156
           labels: ${{ steps.meta.outputs.labels }}
157 157
   #
158
-  docker-manifest:
159
-    name: Push Docker Manifest
160
-    needs: docker
161
-    runs-on: ubuntu-latest
162
-    steps:
163
-      - name: Extract version from tag
164
-        id: vars
165
-        run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
166
-
167
-      - name: Log in to Docker Hub
168
-        uses: docker/login-action@v2
169
-        with:
170
-          username: ${{ secrets.DOCKER_USERNAME }}
171
-          password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
172
-
173
-      - name: Create and push manifest (:version)
174
-        uses: Noelware/docker-manifest-action@master
175
-        with:
176
-          base-image: lejianwen/rustdesk-api:${{ env.TAG }}
177
-          extra-images: lejianwen/rustdesk-api:${{ env.TAG }}-amd64,lejianwen/rustdesk-api:${{ env.TAG }}-arm64
178
-          push: true
158
+#  docker-manifest:
159
+#    name: Push Docker Manifest
160
+#    needs: docker
161
+#    runs-on: ubuntu-latest
162
+#    steps:
163
+#      - name: Extract version from tag
164
+#        id: vars
165
+#        run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
166
+#
167
+#      - name: Log in to Docker Hub
168
+#        uses: docker/login-action@v2
169
+#        with:
170
+#          username: ${{ secrets.DOCKER_USERNAME }}
171
+#          password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
172
+#
173
+#      - name: Create and push manifest (:version)
174
+#        uses: Noelware/docker-manifest-action@master
175
+#        with:
176
+#          base-image: lejianwen/rustdesk-api:${{ env.TAG }}
177
+#          extra-images: lejianwen/rustdesk-api:${{ env.TAG }}-amd64,lejianwen/rustdesk-api:${{ env.TAG }}-arm64
178
+#          push: true
179 179
 
180 180
 #      - name: Create and push manifest (:latest)
181 181
 #        uses: Noelware/docker-manifest-action@master