Skip to content

Commit

Permalink
chore: update build steps for buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
rokroskar committed Mar 17, 2023
1 parent 7b36d9f commit 84de501
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build-and-push-to-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ jobs:

- name: Push to docker
run: |
docker push ${{ steps.build-image.outputs.IMAGE_NAME }}
docker buildx build \
--platform ${{env.DOCKER_PLATFORMS}} \
--tag ${{ steps.build-image.outputs.IMAGE_NAME }} \
--build-arg BASE_IMAGE="jupyter/base-notebook:${{ matrix.BASE_IMAGE_TAG }}" \
--push \
docker/py
# on master push latest image - the lab-* image is tagged latest
if [ "$REF" == "refs/heads/master" ] && [ "${{ matrix.BASE_IMAGE_TAG }}" == lab-* ]; then
Expand Down

0 comments on commit 84de501

Please sign in to comment.