From: Marcel van der Veldt Date: Fri, 10 Mar 2023 06:04:40 +0000 (+0100) Subject: only use github containers X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=af3b0392ba979c8f9639f69a5a4497d697511648;p=music-assistant-server.git only use github containers --- diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 8a0f7261..e90afe35 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -23,7 +23,7 @@ jobs: - name: Prepare id: prep run: | - DOCKER_IMAGE=music-assistant/server + DOCKER_IMAGE=ghcr.io/music-assistant/server VERSION=latest SHORTREF=${GITHUB_SHA::8} MANUAL_TAG=${{ github.event.inputs.tag }} @@ -36,13 +36,13 @@ jobs: elif [[ $GITHUB_REF == refs/tags/* ]]; then VERSION=${GITHUB_REF#refs/tags/} fi - TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHORTREF},ghcr.io/${DOCKER_IMAGE}:${VERSION},ghcr.io/${DOCKER_IMAGE}:${SHORTREF}" + TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:${SHORTREF}" # If the VERSION looks like a version number, assume that # this is the most recent version of the image and also # tag it 'latest'. if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then - TAGS="$TAGS,${DOCKER_IMAGE}:latest,ghcr.io/${DOCKER_IMAGE}:latest" + TAGS="$TAGS,${DOCKER_IMAGE}:latest" fi # Set output parameters. @@ -58,12 +58,6 @@ jobs: id: buildx uses: docker/setup-buildx-action@v2 - - name: Login to DockerHub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} - - name: Log in to the Github Container registry uses: docker/login-action@v2 with: diff --git a/README.md b/README.md index 037f7a1b..0c6ed6b5 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ By far the most convenient way to run the Music Assistant Server is to install t An alternative way to run the Music Assistant server is by running the docker image: ``` -docker run --network host music-assistant/server -v localpathhere/data:/data musicassistant/server +docker run --network host ghcr.io/music-assistant/server ``` You must run the docker container with host network mode and the data volume is `/data`.