Skip to content

Commit 0d7048d

Browse files
Bot Updating Templated Files
1 parent 330a413 commit 0d7048d

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

.github/workflows/external_trigger.yml

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

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ The architectures supported by this image are:
6262
Add your web files to `/config/www` for hosting.
6363
Modify the nginx, php and site config files under `/config` as needed
6464

65-
6665
## Usage
6766

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

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

7274
```yaml
@@ -108,8 +110,8 @@ Containers are configured using parameters passed at runtime (such as those abov
108110

109111
| Parameter | Function |
110112
| :----: | --- |
111-
| `-p 80` | http |
112-
| `-p 443` | https |
113+
| `-p 80:80` | http |
114+
| `-p 443:443` | https |
113115
| `-e PUID=1000` | for UserID - see below for explanation |
114116
| `-e PGID=1000` | for GroupID - see below for explanation |
115117
| `-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)