ngbs 2 years ago
parent
commit
9576e27cd3

+ 0 - 82
.github/workflows/build-air-universe.yml

@@ -1,82 +0,0 @@
-name: Build Air-Universe
-
-on:
-  # push:
-    # branches: [ master ]
-    # paths:
-    #   - 'air-universe/**'
-    #   - '.github/workflows/build-air-universe.yml'
-  # pull_request:
-  #   branches: [ master ]
-  # UTC +8
-  # schedule:
-  #   - cron: "0 20 * * *"
-  workflow_dispatch:
-
-jobs:
-  build-air-universe:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set Variables
-        run: |
-          echo "AU_PRE_VERSION=$(curl -fsSL https://api.github.com/repos/crossfw/Air-Universe/tags | grep '"name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-          echo "AU_VERSION=$(curl -fsSL https://api.github.com/repos/crossfw/Air-Universe/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-        shell: bash
-
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v2
-        id: buildx
-
-      - name: Cache Docker layers
-        uses: actions/cache@v3
-        with:
-          path: /tmp/.buildx-cache
-          key: ${{ runner.os }}-buildx-${{ github.sha }}
-          restore-keys: |
-            ${{ runner.os }}-buildx-
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      - name: Build and push Docker images
-        uses: docker/build-push-action@v3
-        id: docker_build_air-universe_core_pre
-        with:
-          context: ./air-universe
-          file: ./air-universe/Dockerfile
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/air-universe:${{ env.AU_PRE_VERSION }}
-          builder: ${{ steps.buildx.outputs.name }}
-          cache-from: type=local,src=/tmp/.buildx-cache
-          cache-to: type=local,dest=/tmp/.buildx-cache-new
-
-      - name: Build and push Docker images
-        uses: docker/build-push-action@v3
-        id: docker_build_air-universe_core
-        with:
-          context: ./air-universe
-          file: ./air-universe/Dockerfile.latest
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/air-universe:latest
-            ${{ secrets.DOCKER_HUB_USERNAME }}/air-universe:${{ env.AU_VERSION }}
-          builder: ${{ steps.buildx.outputs.name }}
-          cache-from: type=local,src=/tmp/.buildx-cache
-          cache-to: type=local,dest=/tmp/.buildx-cache-new
-
-      - name: Move cache
-        run: |
-          rm -rf /tmp/.buildx-cache
-          mv /tmp/.buildx-cache-new /tmp/.buildx-cache
-
-      - name: Image digest
-        run: |
-          echo ${{ steps.docker_build_air-universe_core_pre.outputs.digest }}
-          echo ${{ steps.docker_build_air-universe_core.outputs.digest }}

+ 0 - 47
.github/workflows/build-dnscrypt-proxy.yml

@@ -1,47 +0,0 @@
-name: Build DNSCrypt-Proxy
-
-on:
-  # push:
-  #   branches: [ master ]
-  # pull_request:
-  #   branches: [ master ]
-
-  workflow_dispatch:
-
-jobs:
-  build-dnscrypt-proxy:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set Variables
-        run: |
-          echo "DNSCRYPT_PROXY_VERSION=$(curl -fsSL https://api.github.com/repos/dnscrypt/dnscrypt-proxy/releases/latest | grep '"tag_name":' | head -n 1 | sed -E 's/.*"([^"]+)".*/\1/')" >> $GITHUB_ENV
-        shell: bash
-
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v2
-        id: buildx
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      - name: Build DNSCrypt-Proxy and push
-        uses: docker/build-push-action@v3
-        id: docker_build_dnscrypt_proxy
-        with:
-          context: ./dnscrypt-proxy
-          file: ./dnscrypt-proxy/Dockerfile
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/dnscrypt-proxy:latest
-            ${{ secrets.DOCKER_HUB_USERNAME }}/dnscrypt-proxy:${{ env.DNSCRYPT_PROXY_VERSION }}
-          builder: ${{ steps.buildx.outputs.name }}
-
-      - name: Image digest
-        run: |
-          echo ${{ steps.docker_build_dnscrypt_proxy.outputs.digest }}

+ 0 - 47
.github/workflows/build-doh-server.yml

@@ -1,47 +0,0 @@
-name: Build DNS Over HTTPS
-
-on:
-  # push:
-  #   branches: [ master ]
-  # pull_request:
-  #   branches: [ master ]
-
-  workflow_dispatch:
-
-jobs:
-  build-doh-server:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set Variables
-        run: |
-          echo "DOH_VERSION=$(curl -fsSL https://api.github.com/repos/m13253/dns-over-https/tags | grep '"name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-        shell: bash
-
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v2
-        id: buildx
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      - name: Build doh-server and push
-        uses: docker/build-push-action@v3
-        id: docker_build_doh_server
-        with:
-          context: ./doh-server
-          file: ./doh-server/Dockerfile.server
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/doh-server:latest
-            ${{ secrets.DOCKER_HUB_USERNAME }}/doh-server:${{ env.DOH_VERSION }}
-          builder: ${{ steps.buildx.outputs.name }}
-
-      - name: Image digest
-        run: |
-          echo ${{ steps.docker_build_doh_server.outputs.digest }}

+ 0 - 47
.github/workflows/build-encrypted-dns.yml

@@ -1,47 +0,0 @@
-name: Build ENCRYPTED DNS
-
-on:
-  # push:
-  #   branches: [ master ]
-  # pull_request:
-  #   branches: [ master ]
-
-  workflow_dispatch:
-
-jobs:
-  build-encrypted-dns:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set Variables
-        run: |
-          echo "EDNS_VERSION=$(curl -fsSL https://api.github.com/repos/DNSCrypt/encrypted-dns-server/tags | grep '"name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-        shell: bash
-
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v2
-        id: buildx
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      - name: Build encrypted-dns and push
-        uses: docker/build-push-action@v3
-        id: docker_build_encrypted_dns
-        with:
-          context: ./encrypted-dns
-          file: ./encrypted-dns/Dockerfile
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/encrypted-dns:latest
-            ${{ secrets.DOCKER_HUB_USERNAME }}/encrypted-dns:${{ env.EDNS_VERSION }}
-          builder: ${{ steps.buildx.outputs.name }}
-
-      - name: Image digest
-        run: |
-          echo ${{ steps.docker_build_encrypted_dns.outputs.digest }}

+ 0 - 60
.github/workflows/build-frp.yml

@@ -1,60 +0,0 @@
-name: Build Frp
-
-on:
-  # push:
-  #   branches: [ master ]
-  # pull_request:
-  #   branches: [ master ]
-
-  workflow_dispatch:
-
-jobs:
-  build-frp:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set Variables
-        run: |
-          echo "FRP_VERSION=$(curl -fsSL https://api.github.com/repos/fatedier/frp/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-        shell: bash
-
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up Docker Buildx
-        id: buildx
-        uses: docker/setup-buildx-action@v2
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      - name: Build frps and push
-        uses: docker/build-push-action@v3
-        id: docker_build_frps
-        with:
-          context: ./frp
-          file: ./frp/Dockerfile.server
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/frp:server
-            ${{ secrets.DOCKER_HUB_USERNAME }}/frp:${{ env.FRP_VERSION }}-server
-          builder: ${{ steps.buildx.outputs.name }}
-
-      - name: Build frpc and push
-        uses: docker/build-push-action@v3
-        id: docker_build_frpc
-        with:
-          context: ./frp
-          file: ./frp/Dockerfile.client
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/frp:client
-            ${{ secrets.DOCKER_HUB_USERNAME }}/frp:${{ env.FRP_VERSION }}-client
-          builder: ${{ steps.buildx.outputs.name }}
-
-      - name: Image digest
-        run: |
-          echo ${{ steps.docker_build_frps.outputs.digest }}
-          echo ${{ steps.docker_build_frpc.outputs.digest }}

+ 0 - 63
.github/workflows/build-mdc-baseimages.yml

@@ -1,63 +0,0 @@
-name: Build MDC Baseimage
-
-on:
-  workflow_dispatch:
-    inputs:
-      manual:
-        description: 'manual build and publish'
-  # schedule:
-  #   - cron: '0 20 15,30 * *'
-
-jobs:
-  build:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set Variables
-        run: |
-          echo "MDC_BASEIMAGE_VERSION=$(curl -fsSL https://api.github.com/repos/pyinstaller/pyinstaller/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-        shell: bash
-
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up QEMU
-        uses: docker/setup-qemu-action@v1
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v2
-
-      - name: Cache Docker layers
-        uses: actions/cache@v3
-        with:
-          path: /tmp/.buildx-cache
-          key: ${{ runner.os }}-buildx-${{ github.sha }}
-          restore-keys: |
-            ${{ runner.os }}-buildx-
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      - name: Build and push Docker images
-        uses: docker/build-push-action@v3
-        id: docker_build_mdc_baseimage
-        with:
-          context: ./mdc
-          file: ./mdc/Dockerfile.builder
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/mdc-buildimage:dev
-            ${{ secrets.DOCKER_HUB_USERNAME }}/mdc-buildimage:${{ env.MDC_BASEIMAGE_VERSION }}
-          builder: ${{ steps.buildx.outputs.name }}
-          cache-from: type=local,src=/tmp/.buildx-cache
-          cache-to: type=local,dest=/tmp/.buildx-cache-new
-
-      - name: Move cache
-        run: |
-          rm -rf /tmp/.buildx-cache
-          mv /tmp/.buildx-cache-new /tmp/.buildx-cache
-
-      - name: Image digest
-        run: echo ${{ steps.docker_build_mdc_baseimage.outputs.digest }}

+ 0 - 52
.github/workflows/build-naiveproxy.yml

@@ -1,52 +0,0 @@
-name: Build NaïveProxy
-
-on:
-  # push:
-    # branches: [ master ]
-    # paths:
-    #   - 'naiveproxy/**'
-    #   - '.github/workflows/build-naiveproxy.yml'
-  # pull_request:
-  #   branches: [ master ]
-  # UTC +8
-  # schedule:
-  #   - cron: "0 20 7 * *"
-  workflow_dispatch:
-
-jobs:
-  build-naiveproxy:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set Variables
-        run: |
-          echo "NAIVE_VERSION=$(curl -fsSL https://api.github.com/repos/klzgrad/naiveproxy/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-        shell: bash
-
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v2
-        id: buildx
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      - name: Build and push Docker images
-        uses: docker/build-push-action@v3
-        id: docker_build_naiveproxy
-        with:
-          context: ./naive
-          file: ./naive/Dockerfile
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/naive:latest
-            ${{ secrets.DOCKER_HUB_USERNAME }}/naive:${{ env.NAIVE_VERSION }}
-          builder: ${{ steps.buildx.outputs.name }}
-
-      - name: Image digest
-        run: |
-          echo ${{ steps.docker_build_naiveproxy.outputs.digest }}

+ 0 - 61
.github/workflows/build-samba.yml

@@ -1,61 +0,0 @@
-name: Build SAMBA
-
-on:
-  # push:
-    # branches: [ master ]
-    # paths:
-    #   - 'samba/**'
-    #   - '.github/workflows/build-samba.yml'
-  # pull_request:
-  #   branches: [ master ]
-  # UTC +8
-  # schedule:
-  #   - cron: "0 20 * * *"
-  workflow_dispatch:
-
-jobs:
-  build-samba:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v2
-        id: buildx
-
-      - name: Cache Docker layers
-        uses: actions/cache@v3
-        with:
-          path: /tmp/.buildx-cache
-          key: ${{ runner.os }}-buildx-${{ github.sha }}
-          restore-keys: |
-            ${{ runner.os }}-buildx-
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      - name: Build and push Docker images
-        uses: docker/build-push-action@v3
-        id: docker_build_samba
-        with:
-          context: ./samba
-          file: ./samba/Dockerfile
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/samba:latest
-          builder: ${{ steps.buildx.outputs.name }}
-          cache-from: type=local,src=/tmp/.buildx-cache
-          cache-to: type=local,dest=/tmp/.buildx-cache-new
-
-      - name: Move cache
-        run: |
-          rm -rf /tmp/.buildx-cache
-          mv /tmp/.buildx-cache-new /tmp/.buildx-cache
-
-      - name: Image digest
-        run: |
-          echo ${{ steps.docker_build_samba.outputs.digest }}

+ 0 - 68
.github/workflows/build-sspaneluim.yml

@@ -1,68 +0,0 @@
-name: Build SSPanel-Uim
-
-on:
-  # push:
-    # branches: [ master ]
-    # paths:
-    #   - 'sspaneluim/**'
-    #   - '.github/workflows/build-sspaneluim.yml'
-  # pull_request:
-  #   branches: [ master ]
-  # UTC +8
-  # schedule:
-  #   - cron: "0 20 * * *"
-  workflow_dispatch:
-
-jobs:
-  build-sspaneluim:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set Variables
-        run: |
-          echo "SSPANELUIM_VERSION=$(curl -fsSL https://api.github.com/repos/Anankke/SSPanel-Uim/tags | grep '"name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-        shell: bash
-
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v2
-        id: buildx
-
-      - name: Cache Docker layers
-        uses: actions/cache@v3
-        with:
-          path: /tmp/.buildx-cache
-          key: ${{ runner.os }}-buildx-${{ github.sha }}
-          restore-keys: |
-            ${{ runner.os }}-buildx-
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      - name: Build and push Docker images
-        uses: docker/build-push-action@v3
-        id: docker_build_sspaneluim_core
-        with:
-          context: ./sspaneluim
-          file: ./sspaneluim/Dockerfile
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/sspaneluim:latest
-            ${{ secrets.DOCKER_HUB_USERNAME }}/sspaneluim:${{ env.SSPANELUIM_VERSION }}
-          builder: ${{ steps.buildx.outputs.name }}
-          cache-from: type=local,src=/tmp/.buildx-cache
-          cache-to: type=local,dest=/tmp/.buildx-cache-new
-
-      - name: Move cache
-        run: |
-          rm -rf /tmp/.buildx-cache
-          mv /tmp/.buildx-cache-new /tmp/.buildx-cache
-
-      - name: Image digest
-        run: |
-          echo ${{ steps.docker_build_sspaneluim_core_pre.outputs.digest }}
-          echo ${{ steps.docker_build_sspaneluim_core.outputs.digest }}

+ 0 - 82
.github/workflows/build-tuic.yml

@@ -1,82 +0,0 @@
-name: Build TUIC
-
-on:
-  # push:
-    # branches: [ master ]
-    # paths:
-    #   - 'tuic/**'
-    #   - '.github/workflows/build-tuic.yml'
-  # pull_request:
-  #   branches: [ master ]
-  # UTC +8
-  # schedule:
-  #   - cron: "0 20 * * *"
-  workflow_dispatch:
-
-jobs:
-  build-tuic:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set Variables
-        run: |
-          echo "XRAYR_PRE_VERSION=$(curl -fsSL https://api.github.com/repos/EAimTY/tuic/tags | grep '"name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-          echo "XRAYR_VERSION=$(curl -fsSL https://api.github.com/repos/EAimTY/tuic/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-        shell: bash
-
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v2
-        id: buildx
-
-      - name: Cache Docker layers
-        uses: actions/cache@v3
-        with:
-          path: /tmp/.buildx-cache
-          key: ${{ runner.os }}-buildx-${{ github.sha }}
-          restore-keys: |
-            ${{ runner.os }}-buildx-
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      # - name: Build and push Docker images
-      #   uses: docker/build-push-action@v3
-      #   id: docker_build_tuic_core_pre
-      #   with:
-      #     context: ./tuic
-      #     file: ./tuic/Dockerfile
-      #     push: true
-      #     tags: |
-      #       ${{ secrets.DOCKER_HUB_USERNAME }}/tuic:${{ env.XRAYR_PRE_VERSION }}
-      #     builder: ${{ steps.buildx.outputs.name }}
-      #     cache-from: type=local,src=/tmp/.buildx-cache
-      #     cache-to: type=local,dest=/tmp/.buildx-cache-new
-
-      - name: Build and push Docker images
-        uses: docker/build-push-action@v3
-        id: docker_build_tuic_core
-        with:
-          context: ./tuic
-          file: ./tuic/Dockerfile.latest
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/tuic:latest
-            ${{ secrets.DOCKER_HUB_USERNAME }}/tuic:${{ env.XRAYR_VERSION }}
-          builder: ${{ steps.buildx.outputs.name }}
-          cache-from: type=local,src=/tmp/.buildx-cache
-          cache-to: type=local,dest=/tmp/.buildx-cache-new
-
-      - name: Move cache
-        run: |
-          rm -rf /tmp/.buildx-cache
-          mv /tmp/.buildx-cache-new /tmp/.buildx-cache
-
-      - name: Image digest
-        run: |
-          echo ${{ steps.docker_build_tuic_core_pre.outputs.digest }}
-          echo ${{ steps.docker_build_tuic_core.outputs.digest }}

+ 0 - 83
.github/workflows/build-x-ui.yml

@@ -1,83 +0,0 @@
-name: Build X-UI
-
-on:
-  # push:
-    # branches: [ master ]
-    # paths:
-    #   - 'x-ui/**'
-    #   - '.github/workflows/build-x-ui.yml'
-  # pull_request:
-  #   branches: [ master ]
-  # UTC +8
-  # schedule:
-  #   - cron: "0 20 * * *"
-  workflow_dispatch:
-
-jobs:
-  build-x-ui:
-    runs-on: ubuntu-latest
-    steps:
-      - name: Set Variables
-        run: |
-          echo "X_UI_PRE_VERSION=$(curl -fsSL https://api.github.com/repos/FranzKafkaYu/x-ui/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-          echo "X_UI_VERSION=$(curl -fsSL https://api.github.com/repos/FranzKafkaYu/x-ui/tags | grep '"name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-        shell: bash
-
-      - name: Check Out Repo
-        uses: actions/checkout@v3
-
-      - name: Set up Docker Buildx
-        uses: docker/setup-buildx-action@v2
-        id: buildx
-
-      - name: Cache Docker layers
-        uses: actions/cache@v3
-        with:
-          path: /tmp/.buildx-cache
-          key: ${{ runner.os }}-buildx-${{ github.sha }}
-          restore-keys: |
-            ${{ runner.os }}-buildx-
-
-      - name: Login to Docker Hub
-        uses: docker/login-action@v2
-        with:
-          username: ${{ secrets.DOCKER_HUB_USERNAME }}
-          password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-      # - name: Build and push Docker images
-      #   uses: docker/build-push-action@v3
-      #   id: docker_build_x-ui_core_pre
-      #   with:
-      #     context: ./x-ui
-      #     file: ./x-ui/Dockerfile
-      #     push: true
-      #     tags: |
-      #       ${{ 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
-
-      - name: Build and push Docker images
-        uses: docker/build-push-action@v3
-        id: docker_build_x-ui_core
-        with:
-          context: ./x-ui
-          file: ./x-ui/Dockerfile.latest
-          push: true
-          tags: |
-            ${{ secrets.DOCKER_HUB_USERNAME }}/x-ui:latest
-            ${{ secrets.DOCKER_HUB_USERNAME }}/x-ui:${{ 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
-
-      - name: Move cache
-        run: |
-          rm -rf /tmp/.buildx-cache
-          mv /tmp/.buildx-cache-new /tmp/.buildx-cache
-
-      - name: Image digest
-        run: |
-          echo ${{ steps.docker_build_x-ui_core_pre.outputs.digest }}
-          echo ${{ steps.docker_build_x-ui_core.outputs.digest }}

+ 1 - 1
.github/workflows/codeql-analysis.yml

@@ -15,7 +15,7 @@ on:
   push:
     branches: [ master ]
     paths-ignore:
-      - '.github/**'
+      # - '.github/**'
       - '**/Dockerfile*'
   pull_request:
     # The branches below must be a subset of the branches above

+ 0 - 269
.github/workflows/main.yml

@@ -58,272 +58,3 @@ jobs:
         run: |
           echo ${{ steps.docker_build_apline_latest.outputs.digest }}
           echo ${{ steps.docker_build_apline_edge.outputs.digest }}
-
-  # build-naiveproxy:
-  #   needs: build-basic
-  #   runs-on: ubuntu-latest
-  #   steps:
-  #     - name: Set Variables
-  #       run: |
-  #         echo "NAIVE_VERSION=$(curl -fsSL https://api.github.com/repos/klzgrad/naiveproxy/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-  #       shell: bash
-
-  #     - name: Check Out Repo
-  #       uses: actions/checkout@v3
-
-  #     - name: Set up Docker Buildx
-  #       uses: docker/setup-buildx-action@v2
-  #       id: buildx
-
-  #     - name: Login to Docker Hub
-  #       uses: docker/login-action@v2
-  #       with:
-  #         username: ${{ secrets.DOCKER_HUB_USERNAME }}
-  #         password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-  #     - name: Build and push Docker images
-  #       uses: docker/build-push-action@v3
-  #       id: docker_build_naiveproxy
-  #       with:
-  #         context: ./naive
-  #         file: ./naive/Dockerfile
-  #         push: true
-  #         tags: |
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/naive:latest
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/naive:${{ env.NAIVE_VERSION }}
-  #         builder: ${{ steps.buildx.outputs.name }}
-
-  #     - name: Image digest
-  #       run: |
-  #         echo ${{ steps.docker_build_naiveproxy.outputs.digest }}
-
-  # build-syncthing:
-  #   needs: build-basic
-  #   runs-on: ubuntu-latest
-  #   steps:
-  #     - name: Set Variables
-  #       run: |
-  #         echo "SYNCTHING_VERSION=$(curl -fsSL https://api.github.com/repos/syncthing/syncthing/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-  #       shell: bash
-
-  #     - name: Check Out Repo
-  #       uses: actions/checkout@v3
-
-  #     - name: Set up Docker Buildx
-  #       uses: docker/setup-buildx-action@v2
-  #       id: buildx
-
-  #     - name: Login to Docker Hub
-  #       uses: docker/login-action@v2
-  #       with:
-  #         username: ${{ secrets.DOCKER_HUB_USERNAME }}
-  #         password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-  #     - name: Build and push Docker images
-  #       uses: docker/build-push-action@v3
-  #       id: docker_build_syncthing
-  #       with:
-  #         context: ./syncthing
-  #         file: ./syncthing/Dockerfile
-  #         push: true
-  #         tags: |
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/syncthing:latest
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/syncthing:${{ env.SYNCTHING_VERSION }}
-  #         builder: ${{ steps.buildx.outputs.name }}
-
-  #     - name: Image digest
-  #       run: |
-  #         echo ${{ steps.docker_build_syncthing.outputs.digest }}
-
-  # build-lego:
-  #   needs: build-basic
-  #   runs-on: ubuntu-latest
-  #   steps:
-  #     - name: Set Variables
-  #       run: |
-  #         echo "LEGO_VERSION=$(curl -fsSL https://api.github.com/repos/go-acme/lego/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-  #       shell: bash
-
-  #     - name: Check Out Repo
-  #       uses: actions/checkout@v3
-
-  #     - name: Set up Docker Buildx
-  #       uses: docker/setup-buildx-action@v2
-  #       id: buildx
-
-  #     - name: Login to Docker Hub
-  #       uses: docker/login-action@v2
-  #       with:
-  #         username: ${{ secrets.DOCKER_HUB_USERNAME }}
-  #         password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-  #     - name: Build and push Docker images
-  #       uses: docker/build-push-action@v3
-  #       id: docker_build_lego
-  #       with:
-  #         context: ./lego
-  #         file: ./lego/Dockerfile
-  #         push: true
-  #         tags: |
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/lego:latest
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/lego:${{ env.LEGO_VERSION }}
-  #         builder: ${{ steps.buildx.outputs.name }}
-
-  #     - name: Image digest
-  #       run: |
-  #         echo ${{ steps.docker_build_lego.outputs.digest }}
-
-  # build-traefik:
-  #   needs: build-basic
-  #   runs-on: ubuntu-latest
-  #   steps:
-  #     - name: Set Variables
-  #       run: |
-  #         echo "TRAEFIK_PRE_VERSION=$(curl -fsSL https://api.github.com/repos/traefik/traefik/tags | grep '"name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-  #         echo "TRAEFIK_VERSION=$(curl -fsSL https://api.github.com/repos/traefik/traefik/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-  #       shell: bash
-
-  #     - name: Check Out Repo
-  #       uses: actions/checkout@v3
-
-  #     - name: Set up Docker Buildx
-  #       uses: docker/setup-buildx-action@v2
-  #       id: buildx
-
-  #     - name: Login to Docker Hub
-  #       uses: docker/login-action@v2
-  #       with:
-  #         username: ${{ secrets.DOCKER_HUB_USERNAME }}
-  #         password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-  #     - name: Build and push Docker images
-  #       uses: docker/build-push-action@v3
-  #       id: docker_build_traefik
-  #       with:
-  #         context: ./traefik
-  #         file: ./traefik/Dockerfile
-  #         push: true
-  #         tags: |
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/traefik:latest
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/traefik:${{ env.TRAEFIK_VERSION }}
-  #         builder: ${{ steps.buildx.outputs.name }}
-
-  #     - name: Build and push Docker images
-  #       uses: docker/build-push-action@v3
-  #       id: docker_build_traefik_pre
-  #       with:
-  #         context: ./traefik
-  #         file: ./traefik/Dockerfile.pre
-  #         push: true
-  #         tags: |
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/traefik:${{ env.TRAEFIK_PRE_VERSION }}
-  #         builder: ${{ steps.buildx.outputs.name }}
-
-  #     - name: Image digest
-  #       run: |
-  #         echo ${{ steps.docker_build_traefik.outputs.digest }}
-  #         echo ${{ steps.docker_build_traefik_pre.outputs.digest }}
-
-  # build-caddy:
-  #   needs: build-basic
-  #   runs-on: ubuntu-latest
-  #   steps:
-  #     - name: Set Variables
-  #       run: |
-  #         echo "CADDY_VERSION=$(curl -fsSL https://api.github.com/repos/caddyserver/caddy/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-  #       shell: bash
-
-  #     - name: Check Out Repo
-  #       uses: actions/checkout@v3
-
-  #     - name: Set up Docker Buildx
-  #       uses: docker/setup-buildx-action@v2
-  #       id: buildx
-
-  #     - name: Cache Docker layers
-  #       uses: actions/cache@v3
-  #       with:
-  #         path: /tmp/.buildx-cache
-  #         key: ${{ runner.os }}-buildx-${{ github.sha }}
-  #         restore-keys: |
-  #           ${{ runner.os }}-buildx-
-
-  #     - name: Login to Docker Hub
-  #       uses: docker/login-action@v2
-  #       with:
-  #         username: ${{ secrets.DOCKER_HUB_USERNAME }}
-  #         password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-  #     - name: Build Caddy and push
-  #       uses: docker/build-push-action@v3
-  #       id: docker_build_caddy
-  #       with:
-  #         context: ./caddy/v2
-  #         file: ./caddy/v2/Dockerfile
-  #         push: true
-  #         tags: |
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/caddy:latest
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/caddy:${{ env.CADDY_VERSION }}
-  #         builder: ${{ steps.buildx.outputs.name }}
-  #         cache-from: type=local,src=/tmp/.buildx-cache
-  #         cache-to: type=local,dest=/tmp/.buildx-cache-new
-
-  #     - name: Move cache
-  #       run: |
-  #         rm -rf /tmp/.buildx-cache
-  #         mv /tmp/.buildx-cache-new /tmp/.buildx-cache
-
-  #     - name: Image digest
-  #       run: |
-  #         echo ${{ steps.docker_build_caddy.outputs.digest }}
-
-  # build-frp:
-  #   needs: build-basic
-  #   runs-on: ubuntu-latest
-  #   steps:
-  #     - name: Set Variables
-  #       run: |
-  #         echo "FRP_VERSION=$(curl -fsSL https://api.github.com/repos/fatedier/frp/releases/latest | grep '"tag_name":' | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/v//g;s/,//g;s/ //g')" >> $GITHUB_ENV
-  #       shell: bash
-
-  #     - name: Check Out Repo
-  #       uses: actions/checkout@v3
-
-  #     - name: Set up Docker Buildx
-  #       uses: docker/setup-buildx-action@v2
-  #       id: buildx
-
-  #     - name: Login to Docker Hub
-  #       uses: docker/login-action@v2
-  #       with:
-  #         username: ${{ secrets.DOCKER_HUB_USERNAME }}
-  #         password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
-  #     - name: Build and push Docker images
-  #       uses: docker/build-push-action@v3
-  #       id: docker_build_frps
-  #       with:
-  #         context: ./frp
-  #         file: ./frp/Dockerfile.server
-  #         push: true
-  #         tags: |
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/frp:server
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/frp:${{ env.FRP_VERSION }}-server
-  #         builder: ${{ steps.buildx.outputs.name }}
-
-  #     - name: Build and push Docker images
-  #       uses: docker/build-push-action@v3
-  #       id: docker_build_frpc
-  #       with:
-  #         context: ./frp
-  #         file: ./frp/Dockerfile.client
-  #         push: true
-  #         tags: |
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/frp:client
-  #           ${{ secrets.DOCKER_HUB_USERNAME }}/frp:${{ env.FRP_VERSION }}-client
-  #         builder: ${{ steps.buildx.outputs.name }}
-
-  #     - name: Image digest
-  #       run: |
-  #         echo ${{ steps.docker_build_frps.outputs.digest }}
-  #         echo ${{ steps.docker_build_frpc.outputs.digest }}