Skip to content

Commit

Permalink
feat(docker): Build multiple python version images (#22770)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Draper <daniel.draper@understand.ai>
  • Loading branch information
Germandrummer92 and Daniel Draper committed Jan 23, 2023
1 parent d479009 commit 931b01e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/docker_build_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,27 @@ docker build --target lean \
-t "${REPO_NAME}:${SHA}" \
-t "${REPO_NAME}:${REFSPEC}" \
-t "${REPO_NAME}:${LATEST_TAG}" \
--build-arg PY_VER="3.8-slim"\
--label "sha=${SHA}" \
--label "built_at=$(date)" \
--label "target=lean" \
--label "build_actor=${GITHUB_ACTOR}" \
.

#
# Build the "lean39" image
#
docker build --target lean \
-t "${REPO_NAME}:${SHA}-py39" \
-t "${REPO_NAME}:${REFSPEC}-py39" \
-t "${REPO_NAME}:${LATEST_TAG}-py39" \
--build-arg PY_VER="3.9-slim"\
--label "sha=${SHA}" \
--label "built_at=$(date)" \
--label "target=lean39" \
--label "build_actor=${GITHUB_ACTOR}" \
.

#
# Build the "websocket" image
#
Expand All @@ -65,7 +80,7 @@ docker build \
-t "${REPO_NAME}:${LATEST_TAG}-websocket" \
--label "sha=${SHA}" \
--label "built_at=$(date)" \
--label "target=lean" \
--label "target=websocket" \
--label "build_actor=${GITHUB_ACTOR}" \
superset-websocket

Expand Down

0 comments on commit 931b01e

Please sign in to comment.