1
0

Compare commits

...

4 Commits

Author SHA1 Message Date
f047db354d bump version
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/manual/build Pipeline was successful
ci/woodpecker/manual/latest Pipeline was successful
2025-08-25 10:19:20 +03:00
7d387b3622 bump deps 2025-08-25 10:19:12 +03:00
2c0bbebc23 ci: fix skopeo calls
Some checks failed
ci/woodpecker/push/build Pipeline failed
ci/woodpecker/manual/latest Pipeline was successful
2025-07-17 13:44:20 +03:00
4d7da179dd ci: try to resolve network issues
Some checks failed
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/manual/latest Pipeline failed
2025-07-17 13:34:53 +03:00
9 changed files with 19 additions and 27 deletions

View File

@@ -47,4 +47,6 @@ echo
buildah images --all --noheading --format 'table {{.ID}} {{.Name}}:{{.Tag}} {{.Size}} {{.CreatedAtRaw}}' --filter "reference=${IMAGE_NAME}"
echo
buildah manifest push --all "${IMAGE}" "docker://${IMAGE}"
buildah manifest push \
--retry 7 --retry-delay 60s \
--all "${IMAGE}" "docker://${IMAGE}"

View File

@@ -11,8 +11,8 @@ set -ef
export BASE_IMAGE="${BASE_IMAGE:?}-${GOARCH:?}"
buildah pull \
--retry 7 --retry-delay 60s \
--platform "${TARGET_PLATFORM}" \
--retry 3 --retry-delay 30s \
"${BASE_IMAGE}"
## build image

View File

@@ -22,12 +22,7 @@ rm -rf "${oci_dir}" ; mkdir "${oci_dir}"
r=0
img_copy() {
for i in $(seq 1 3) ; do
if skopeo copy --all "$@" ; then
return 0
fi
done
return 1
skopeo copy --retry-times 7 --retry-delay 60s --all "$@"
}
while : ; do

View File

@@ -19,12 +19,7 @@ rm -rf "${oci_dir}" ; mkdir "${oci_dir}"
r=0
img_copy() {
for i in $(seq 1 3) ; do
if skopeo copy --all "$@" ; then
return 0
fi
done
return 1
skopeo copy --retry-times 7 --retry-delay 60s --all "$@"
}
while : ; do

View File

@@ -6,7 +6,7 @@ variables:
- &image_name 'docker.io/rockdrilla/rngpotd'
- &buildah_image 'quay.io/containers/buildah:v1.40.1'
- &skopeo_image 'quay.io/containers/skopeo:v1.19.0'
- &go_image 'docker.io/library/golang:1.24.5-bookworm'
- &go_image 'docker.io/library/golang:1.24.6-trixie'
- &base_image 'gcr.io/distroless/static-debian12:nonroot'
## value list depends on base image
## ref: https://github.com/GoogleContainerTools/distroless#debian-12

View File

@@ -1,4 +1,4 @@
ARG GO_IMAGE=docker.io/library/golang:1.24.5-bookworm
ARG GO_IMAGE=docker.io/library/golang:1.24.6-trixie
ARG BASE_IMAGE=gcr.io/distroless/static-debian12:nonroot
## ---

6
go.mod
View File

@@ -2,7 +2,7 @@ module git.krd.sh/krd/rngpotd
go 1.24
require github.com/gofiber/fiber/v2 v2.52.8
require github.com/gofiber/fiber/v2 v2.52.9
require (
github.com/andybalholm/brotli v1.2.0 // indirect
@@ -13,6 +13,6 @@ require (
github.com/mattn/go-runewidth v0.0.16 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasthttp v1.64.0 // indirect
golang.org/x/sys v0.34.0 // indirect
github.com/valyala/fasthttp v1.65.0 // indirect
golang.org/x/sys v0.35.0 // indirect
)

12
go.sum
View File

@@ -1,7 +1,7 @@
github.com/andybalholm/brotli v1.2.0 h1:ukwgCxwYrmACq68yiUqwIWnGY0cTPox/M94sVwToPjQ=
github.com/andybalholm/brotli v1.2.0/go.mod h1:rzTDkvFWvIrjDXZHkuS16NPggd91W3kUSvPlQ1pLaKY=
github.com/gofiber/fiber/v2 v2.52.8 h1:xl4jJQ0BV5EJTA2aWiKw/VddRpHrKeZLF0QPUxqn0x4=
github.com/gofiber/fiber/v2 v2.52.8/go.mod h1:YEcBbO/FB+5M1IZNBP9FO3J9281zgPAreiI1oqg8nDw=
github.com/gofiber/fiber/v2 v2.52.9 h1:YjKl5DOiyP3j0mO61u3NTmK7or8GzzWzCFzkboyP5cw=
github.com/gofiber/fiber/v2 v2.52.9/go.mod h1:YEcBbO/FB+5M1IZNBP9FO3J9281zgPAreiI1oqg8nDw=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/klauspost/compress v1.18.0 h1:c/Cqfb0r+Yi+JtIEq73FWXVkRonBlf0CRNYc8Zttxdo=
@@ -17,10 +17,10 @@ github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasthttp v1.64.0 h1:QBygLLQmiAyiXuRhthf0tuRkqAFcrC42dckN2S+N3og=
github.com/valyala/fasthttp v1.64.0/go.mod h1:dGmFxwkWXSK0NbOSJuF7AMVzU+lkHz0wQVvVITv2UQA=
github.com/valyala/fasthttp v1.65.0 h1:j/u3uzFEGFfRxw79iYzJN+TteTJwbYkru9uDp3d0Yf8=
github.com/valyala/fasthttp v1.65.0/go.mod h1:P/93/YkKPMsKSnATEeELUCkG8a7Y+k99uxNHVbKINr4=
github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU=
github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.34.0 h1:H5Y5sJ2L2JRdyv7ROF1he/lPdvFsd0mJHFw2ThKHxLA=
golang.org/x/sys v0.34.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=

View File

@@ -8,9 +8,9 @@ import (
const (
appName = "rngpotd"
appVersion = "0.0.4"
appVersion = "0.0.5"
userAgent = appName + "/" + appVersion
serverAgent = "nginx/1.29.0"
serverAgent = "nginx/1.29.1"
minimumGoMaxProcs = 4
maximumGoMaxProcs = 8