diff --git a/.github/workflows/deploy-development.yml b/.github/workflows/deploy-development.yml new file mode 100644 index 00000000..8c140ee2 --- /dev/null +++ b/.github/workflows/deploy-development.yml @@ -0,0 +1,36 @@ +name: Build & Publish Development + +on: + workflow_dispatch: + +jobs: + deploy: + name: Build & Deploy + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - uses: actions/checkout@v4 + with: + ref: production + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build & Publish Docker Image + uses: docker/build-push-action@v5 + with: + push: true + platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8 + tags: ghcr.io/wg-easy/wg-easy:development \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 0a2f0433..db0fb085 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,9 +21,14 @@ RUN mv /app/node_modules /node_modules # Install Linux packages RUN apk add -U --no-cache \ - iptables \ - wireguard-tools \ - dumb-init + dpkg \ + dumb-init \ + iptables \ + iptables-legacy \ + wireguard-tools + +# Use iptables-legacy +RUN update-alternatives --install /sbin/iptables iptables /sbin/iptables-legacy 10 --slave /sbin/iptables-restore iptables-restore /sbin/iptables-legacy-restore --slave /sbin/iptables-save iptables-save /sbin/iptables-legacy-save # Expose Ports EXPOSE 51820/udp diff --git a/docs/changelog.json b/docs/changelog.json index 865a7cb7..9e26eceb 100644 --- a/docs/changelog.json +++ b/docs/changelog.json @@ -6,5 +6,6 @@ "5": "Many small improvements & feature requests. Enjoy!", "6": "Many small performance improvements & bug fixes. Enjoy!", "7": "Improved the look & performance of the upload/download chart.", - "8": "Updated to Node.js v18." -} \ No newline at end of file + "8": "Updated to Node.js v18.", + "9": "Fixed issue running on devices with older kernels." +} diff --git a/src/package.json b/src/package.json index bedc826a..7674f131 100644 --- a/src/package.json +++ b/src/package.json @@ -1,5 +1,5 @@ { - "release": 8, + "release": 9, "name": "wg-easy", "version": "1.0.0", "description": "", @@ -25,4 +25,4 @@ "engines": { "node": "18" } -} \ No newline at end of file +}