Skip to content

Commit 90c264b

Browse files
committed
Fix rockylinux image
1 parent 88973d2 commit 90c264b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

build-rocky.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22
source common.sh
33
platforms="${PLATFORMS:-linux/amd64,linux/arm64}"
4-
docker-tags rockylinux |
4+
docker-tags rockylinux/rockylinux |
55
while read tag; do
66
dockerfile=$(mktemp)
77
cat << EOF > $dockerfile
8-
FROM rockylinux:$tag
8+
FROM rockylinux/rockylinux:$tag
99
RUN sed -i \
1010
-e 's/mirrorlist/#mirrorlist/g' \
1111
-e 's/#baseurl/baseurl/g' \

common.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ parse-tags-js() {
1919
}
2020
docker-tags(){
2121
is_empty=false
22-
image="library/$1"
22+
if [[ "$1" == */* ]]; then
23+
image="$1"
24+
else
25+
image="library/$1"
26+
fi
2327
page_url="https://registry.hub.docker.com/v2/repositories/${image}/tags/"
2428
while [[ -n "$page_url" && "$page_url" != "null" && "$is_empty" != "true" ]]
2529
do

0 commit comments

Comments
 (0)