Skip to content

Commit 6e0d73a

Browse files
Bot Updating Templated Files
1 parent 0095f96 commit 6e0d73a

2 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/external_trigger.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,18 @@ jobs:
4343
token=$(curl -sX GET \
4444
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmstream%3Apull" \
4545
| jq -r '.token')
46-
multidigest=$(curl -s \
47-
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
48-
--header "Authorization: Bearer ${token}" \
49-
"https://ghcr.io/v2/${image}/manifests/${tag}" \
50-
| jq -r 'first(.manifests[].digest)')
51-
digest=$(curl -s \
52-
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
53-
--header "Authorization: Bearer ${token}" \
54-
"https://ghcr.io/v2/${image}/manifests/${multidigest}" \
55-
| jq -r '.config.digest')
46+
multidigest=$(curl -s \
47+
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
48+
--header "Accept: application/vnd.oci.image.index.v1+json" \
49+
--header "Authorization: Bearer ${token}" \
50+
"https://ghcr.io/v2/${image}/manifests/${tag}")
51+
multidigest=$(jq -r ".manifests[] | select(.platform.architecture == \"amd64\").digest?" <<< "${multidigest}")
52+
digest=$(curl -s \
53+
--header "Accept: application/vnd.docker.distribution.manifest.v2+json" \
54+
--header "Accept: application/vnd.oci.image.manifest.v1+json" \
55+
--header "Authorization: Bearer ${token}" \
56+
"https://ghcr.io/v2/${image}/manifests/${multidigest}" \
57+
| jq -r '.config.digest')
5658
image_info=$(curl -sL \
5759
--header "Authorization: Bearer ${token}" \
5860
"https://ghcr.io/v2/${image}/blobs/${digest}")

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,13 @@ mStream v5 no longer accepts cli arguments for setting the user and password and
6868

6969
v4's `config.json` is not compatible with v5. Existing `config.json` will be renamed to `config.json.v4-bak` for your reference and a new default `config.json` will be created upon upgrade from v4 to v5.
7070

71-
7271
## Usage
7372

7473
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
7574

75+
>[!NOTE]
76+
>Unless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided.
77+
7678
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
7779

7880
```yaml
@@ -114,7 +116,7 @@ Containers are configured using parameters passed at runtime (such as those abov
114116

115117
| Parameter | Function |
116118
| :----: | --- |
117-
| `-p 3000` | The port for the mStream web interface |
119+
| `-p 3000:3000` | The port for the mStream web interface |
118120
| `-e PUID=1000` | for UserID - see below for explanation |
119121
| `-e PGID=1000` | for GroupID - see below for explanation |
120122
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |

0 commit comments

Comments
 (0)