only use github containers
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 10 Mar 2023 06:04:40 +0000 (07:04 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 10 Mar 2023 06:04:40 +0000 (07:04 +0100)
.github/workflows/docker-build.yml
README.md

index 8a0f7261474b5eced9fbd5ad42a850c7cd65dd36..e90afe35b2b321ca2310501dc95e51f3f9221574 100644 (file)
@@ -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:
index 037f7a1b24e33b4ef515abe46e192d6b5bf48c4e..0c6ed6b54e80e68761720f146ffafee81a9ada9b 100644 (file)
--- 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`.