Skip to content

Commit 17f7fe7

Browse files
Bot Updating Templated Files
1 parent 53adf5f commit 17f7fe7

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

.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%2Frsnapshot%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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,13 @@ This can be changed in the config, but be sure you mount a volume to the contain
8282
You will then need to edit `/config/crontabs/root` to set cron jobs to run rsnapshot.
8383
By default no cron jobs are enabled. Examples are includes based on information from the [rsnapshot readme](https://github.com/rsnapshot/rsnapshot/blob/master/README.md#configuration).
8484

85-
8685
## Usage
8786

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

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

9294
```yaml

0 commit comments

Comments
 (0)