1
0

minor fixes
All checks were successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/manual/latest Pipeline was successful

This commit is contained in:
Konstantin Demin 2024-07-21 01:14:36 +03:00
parent a9f9014edd
commit fe1fb1935c
Signed by: krd
GPG Key ID: 4D56F87A8BA65FD0
3 changed files with 3 additions and 5 deletions

View File

@ -50,7 +50,7 @@ CI_COMMIT_REF_SLUG="$(image_tag_norm "${CI_COMMIT_REF_SLUG}")"
## image tag(s)
IMAGE_TAG="${CI_COMMIT_SHORT_SHA}-b${CI_PIPELINE_NUMBER}-${CI_COMMIT_REF_SLUG}"
EXTRA_TAGS=$(image_tag_norm "branch-${CI_COMMIT_BRANCH}")
EXTRA_TAGS=
if [ -n "${CI_COMMIT_TAG}" ] ; then
IMAGE_TAG="${CI_COMMIT_SHORT_SHA}"
EXTRA_TAGS="${CI_COMMIT_REF_SLUG}"

View File

@ -6,7 +6,7 @@ FROM --platform=${TARGET_PLATFORM} ${BASE_IMAGE}
ARG PLATFORM_SUFFIX
COPY /dist/rngpotd${PLATFORM_SUFFIX} /bin/rngpotd
ENTRYPOINT [ ]
CMD [ "/bin/rngpotd" ]
ENTRYPOINT [ "/bin/rngpotd" ]
CMD [ ]
USER nonroot:nonroot

View File

@ -8,8 +8,6 @@ var (
rngRetCodes = [...]int{
fiber.StatusTeapot,
fiber.StatusEarlyHints,
fiber.StatusNonAuthoritativeInformation,
fiber.StatusNoContent,
fiber.StatusResetContent,