ngbs 5 月之前
父节点
当前提交
e82df237bc
共有 1 个文件被更改,包括 15 次插入1 次删除
  1. 15 1
      .github/workflows/build-chinadns-ng.yml

+ 15 - 1
.github/workflows/build-chinadns-ng.yml

@@ -37,7 +37,7 @@ jobs:
           username: ${{ github.actor }}
           username: ${{ github.actor }}
           password: ${{ secrets.GITHUB_TOKEN }}
           password: ${{ secrets.GITHUB_TOKEN }}
 
 
-      - name: Build and push
+      - name: Build and push x86_64 v2
         uses: docker/build-push-action@v5
         uses: docker/build-push-action@v5
         with:
         with:
           context: ./chinadns-ng
           context: ./chinadns-ng
@@ -50,3 +50,17 @@ jobs:
             ghcr.io/${{ github.repository }}/chinadns-ng:${{ env.CHINADNS_NG_VERSION }}
             ghcr.io/${{ github.repository }}/chinadns-ng:${{ env.CHINADNS_NG_VERSION }}
           cache-from: type=gha
           cache-from: type=gha
           cache-to: type=gha,mode=max
           cache-to: type=gha,mode=max
+
+      - name: Build and push x86_64 v1
+        uses: docker/build-push-action@v5
+        with:
+          context: ./chinadns-ng
+          file: ./chinadns-ng/Dockerfile.x86_64_v1
+          push: true
+          tags: |
+            ${{ secrets.DOCKER_HUB_USERNAME }}/chinadns-ng:x86_64_v1
+            ${{ secrets.DOCKER_HUB_USERNAME }}/chinadns-ng:${{ env.CHINADNS_NG_VERSION }}_x86_64_v1
+            ghcr.io/${{ github.repository }}/chinadns-ng:x86_64_v1
+            ghcr.io/${{ github.repository }}/chinadns-ng:${{ env.CHINADNS_NG_VERSION }}_x86_64_v1
+          cache-from: type=gha
+          cache-to: type=gha,mode=max