minor fixes
This commit is contained in:
parent
a9f9014edd
commit
fe1fb1935c
@ -50,7 +50,7 @@ CI_COMMIT_REF_SLUG="$(image_tag_norm "${CI_COMMIT_REF_SLUG}")"
|
|||||||
|
|
||||||
## image tag(s)
|
## image tag(s)
|
||||||
IMAGE_TAG="${CI_COMMIT_SHORT_SHA}-b${CI_PIPELINE_NUMBER}-${CI_COMMIT_REF_SLUG}"
|
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
|
if [ -n "${CI_COMMIT_TAG}" ] ; then
|
||||||
IMAGE_TAG="${CI_COMMIT_SHORT_SHA}"
|
IMAGE_TAG="${CI_COMMIT_SHORT_SHA}"
|
||||||
EXTRA_TAGS="${CI_COMMIT_REF_SLUG}"
|
EXTRA_TAGS="${CI_COMMIT_REF_SLUG}"
|
||||||
|
@ -6,7 +6,7 @@ FROM --platform=${TARGET_PLATFORM} ${BASE_IMAGE}
|
|||||||
ARG PLATFORM_SUFFIX
|
ARG PLATFORM_SUFFIX
|
||||||
COPY /dist/rngpotd${PLATFORM_SUFFIX} /bin/rngpotd
|
COPY /dist/rngpotd${PLATFORM_SUFFIX} /bin/rngpotd
|
||||||
|
|
||||||
ENTRYPOINT [ ]
|
ENTRYPOINT [ "/bin/rngpotd" ]
|
||||||
CMD [ "/bin/rngpotd" ]
|
CMD [ ]
|
||||||
|
|
||||||
USER nonroot:nonroot
|
USER nonroot:nonroot
|
||||||
|
@ -8,8 +8,6 @@ var (
|
|||||||
rngRetCodes = [...]int{
|
rngRetCodes = [...]int{
|
||||||
fiber.StatusTeapot,
|
fiber.StatusTeapot,
|
||||||
|
|
||||||
fiber.StatusEarlyHints,
|
|
||||||
|
|
||||||
fiber.StatusNonAuthoritativeInformation,
|
fiber.StatusNonAuthoritativeInformation,
|
||||||
fiber.StatusNoContent,
|
fiber.StatusNoContent,
|
||||||
fiber.StatusResetContent,
|
fiber.StatusResetContent,
|
||||||
|
Loading…
Reference in New Issue
Block a user