ngbs 3 years ago
parent
commit
29cdc612a1
2 changed files with 4 additions and 4 deletions
  1. 3 3
      .github/workflows/build-x-ui.yml
  2. 1 1
      x-ui/Dockerfile

+ 3 - 3
.github/workflows/build-x-ui.yml

@@ -52,7 +52,8 @@ jobs:
           file: ./x-ui/Dockerfile
           push: true
           tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/x-ui:${{ env.X_UI_PRE_VERSION }}
+            ${{ secrets.DOCKER_HUB_USERNAME }}/x-ui:latest
+            ${{ secrets.DOCKER_HUB_USERNAME }}/x-ui:alpine-${{ env.X_UI_PRE_VERSION }}
           builder: ${{ steps.buildx.outputs.name }}
           cache-from: type=local,src=/tmp/.buildx-cache
           cache-to: type=local,dest=/tmp/.buildx-cache-new
@@ -65,8 +66,7 @@ jobs:
           file: ./x-ui/Dockerfile.latest
           push: true
           tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/x-ui:latest
-            ${{ secrets.DOCKER_HUB_USERNAME }}/x-ui:${{ env.X_UI_VERSION }}
+            ${{ secrets.DOCKER_HUB_USERNAME }}/x-ui:debian-${{ env.X_UI_VERSION }}
           builder: ${{ steps.buildx.outputs.name }}
           cache-from: type=local,src=/tmp/.buildx-cache
           cache-to: type=local,dest=/tmp/.buildx-cache-new

+ 1 - 1
x-ui/Dockerfile

@@ -17,7 +17,7 @@ FROM alpine
 COPY --from=builder /go/src/main /usr/local/bin/x-ui
 COPY --from=builder /tmp/*.dat /tmp/xray-linux-amd64 /bin
 
-RUN apk --no-cache add ca-certificates tzdata
+# RUN apk --no-cache add ca-certificates tzdata
 
 ENTRYPOINT ["/usr/local/bin/x-ui"]
 ENV PATH /usr/local/bin/x-ui:$PATH