From cb25560897873a2b53bb5e62ac6edc0de976fe12 Mon Sep 17 00:00:00 2001 From: webbrain-one <295484252+webbrain-one@users.noreply.github.com> Date: Wed, 26 Aug 2026 06:41:35 +0300 Subject: [PATCH] Replace Docker Hub with GitHub Packages Add workflow to build and publish Docker images to GHCR on release tags and update README. --- .github/workflows/docker.yml | 42 ++++++++++++++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..793c5d4 --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,42 @@ +name: Docker Publish + +on: + push: + tags: + - "*" + +permissions: + contents: read + packages: write + +jobs: + publish: + name: Build & upload Docker image + runs-on: ubuntu-latest + steps: + - name: Download source + uses: actions/checkout@v3 + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract Docker metadata + uses: docker/metadata-action@v4 + id: meta + with: + images: ghcr.io/${{ github.repository_owner }}/udl-server + tags: | + type=raw,value=latest,enable=true + type=ref,event=tag + + - name: Build & upload Docker image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/README.md b/README.md index d19c81d..375300e 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ The project makes it easy for you to self host a UDL Server. The easiest way to - Enable activity continuation and other [associated domain features](https://developer.apple.com/documentation/xcode/supporting-associated-domains) - i.e. `ABCDE12345.com.example.app` -Alternatively you can run the lightweight [`fdocr/udl-server`](https://hub.docker.com/repository/docker/fdocr/udl-server) Docker container on your own. At the time of this writing the docker image is only about `26.3 MB` in size (`10.87 MB` compressed). +Alternatively you can run the lightweight [`ghcr.io/fdocr/udl-server`](https://ghcr.io/fdocr/udl-server) Docker container on your own. At the time of this writing the docker image is only about `26.3 MB` in size (`10.87 MB` compressed). ## Troubleshooting