diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..866cc64 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,40 @@ +name: publish + +on: [push] + +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + build-and-push-image: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + labels: ${{ steps.meta.outputs.labels }} + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ steps.meta.outputs.tags }} diff --git a/config.json.example b/config.json.example new file mode 100644 index 0000000..efbe7d4 --- /dev/null +++ b/config.json.example @@ -0,0 +1,5 @@ +{ + "host": "0.0.0.0", + "port": 5090, + "fingerprint_random_path": "/xilriws-fingerprint-random/" +} diff --git a/docker-compose.yml b/docker-compose.yml.example similarity index 87% rename from docker-compose.yml rename to docker-compose.yml.example index dd9a14a..38d5ea8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml.example @@ -10,7 +10,7 @@ services: volumes: - /var/run/docker.sock:/var/run/docker.sock xilriws: - image: xilriws + image: ghcr.io/unownhash/xilriws-public:main restart: unless-stopped volumes: - ./xilriws.json:/xilriws/config.json @@ -19,4 +19,4 @@ services: labels: - traefik.http.routers.xilriws.rule=HostRegexp(`{catchall:.*}`) deploy: - replicas: 1 \ No newline at end of file + replicas: 1 diff --git a/xilriws b/xilriws new file mode 100755 index 0000000..6540164 Binary files /dev/null and b/xilriws differ