diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml new file mode 100644 index 0000000..a0e2c36 --- /dev/null +++ b/.github/workflows/image.yml @@ -0,0 +1,41 @@ +name: Publish Multi-platform Docker Image to Github Container Registry + +on: + push: + branches: main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out the repo + uses: actions/checkout@v4 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - 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: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push Docker image + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: ghcr.io/debridmediamanager/zurg:latest + cache-from: type=local,src=/tmp/.buildx-cache + cache-to: type=local,dest=/tmp/.buildx-cache diff --git a/README.md b/README.md index 8b36ba5..b3c3ad0 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,8 @@ docker run -v ./config.yml:/app/config.yml -v zurgdata:/app/data -p 9999:9999 de ### with rclone +You will need to create a `media` directory to make the rclone mount work. + ```yaml version: '3.8' @@ -117,8 +119,6 @@ volumes: zurgdata: ``` -You will need to create a `media` directory to make the rclone mount work. - Together with this `docker-compose.yml` you will need this `rclone.conf` as well on the same directory. ```