build(docker): add dockerize image (#24534)

Co-authored-by: Aleksey Karpov <al.karpov@okko.tv>
This commit is contained in:
Aleksey Karpov
2023-06-29 22:03:59 +03:00
committed by GitHub
parent bf9338129a
commit 46159fd190
5 changed files with 30 additions and 6 deletions

View File

@@ -96,6 +96,17 @@ DOCKER_BUILDKIT=1 docker build --target dev \
--label "build_actor=${GITHUB_ACTOR}" \
.
#
# Build the dockerize image
#
DOCKER_BUILDKIT=1 docker build \
-t "${REPO_NAME}:dockerize" \
--label "sha=${SHA}" \
--label "built_at=$(date)" \
--label "build_actor=${GITHUB_ACTOR}" \
-f dockerize.Dockerfile \
.
if [ -z "${DOCKERHUB_TOKEN}" ]; then
# Skip if secrets aren't populated -- they're only visible for actions running in the repo (not on forks)
echo "Skipping Docker push"