- 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 }}
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.
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:
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`.