ngbs 2 年之前
父節點
當前提交
49af07e132
共有 3 個文件被更改,包括 15 次插入4 次删除
  1. 4 4
      .github/workflows/build-mdc.yml
  2. 1 0
      .gitignore
  3. 10 0
      mdc/root/pyinstaller.sh

+ 4 - 4
.github/workflows/build-mdc.yml

@@ -32,11 +32,11 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-buildx-
 
-      - name: Login to DockerHub
-        uses: docker/login-action@v1
+      - name: Login to Docker Hub
+        uses: docker/login-action@v2
         with:
-          username: playn
-          password: ${{ secrets.DOCKERHUB_TOKEN }}
+          username: ${{ secrets.DOCKER_HUB_USERNAME }}
+          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
 
       - name: Build and push Docker images
         uses: docker/build-push-action@v3

+ 1 - 0
.gitignore

@@ -10,5 +10,6 @@
 !samba.sh
 !builder.sh
 !entrypoint.sh
+!pyinstaller.sh
 !README*.md
 unbound

+ 10 - 0
mdc/root/pyinstaller.sh

@@ -0,0 +1,10 @@
+#!/bin/sh
+# Simple wrapper around pyinstaller
+
+set -e
+
+# Use the hacked ldd to fix libc.musl-x86_64.so.1 location
+PATH="/pyinstaller:$PATH"
+
+# Exclude pycrypto and PyInstaller from built packages
+exec pyinstaller "$@"