Skip to content

Commit e2c5c11

Browse files
Bot Updating Templated Files
1 parent 48dd6a3 commit e2c5c11

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%2Fkrita%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
@@ -156,11 +156,13 @@ It is possible to install extra packages during container start using [universal
156156
- INSTALL_PACKAGES=libfuse2|git|gdb
157157
```
158158
159-
160159
## Usage
161160
162161
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
163162
163+
>[!NOTE]
164+
>Unless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided.
165+
164166
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
165167
166168
```yaml
@@ -205,8 +207,8 @@ Containers are configured using parameters passed at runtime (such as those abov
205207

206208
| Parameter | Function |
207209
| :----: | --- |
208-
| `-p 3000` | Krita desktop gui. |
209-
| `-p 3001` | Krita desktop gui HTTPS. |
210+
| `-p 3000:3000` | Krita desktop gui. |
211+
| `-p 3001:3001` | Krita desktop gui HTTPS. |
210212
| `-e PUID=1000` | for UserID - see below for explanation |
211213
| `-e PGID=1000` | for GroupID - see below for explanation |
212214
| `-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)