@@ -725,22 +725,41 @@ jobs:
725725 --hostname 0.0.0.0
726726 --enable-web-server
727727 --local-executor && ./tests/integration/test_integration.sh 8899
728- - name : Build multi-platform containers
728+ - name : Push to GHCR
729729 run : >-
730- REGISTRY_URL="ghcr.io/abhinavsingh/proxy.py"
730+ PLATFORMS=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x;
731+ REGISTRY_URL="ghcr.io/abhinavsingh/proxy.py";
731732 CONTAINER_TAG=$REGISTRY_URL:${{
732733 needs.pre-setup.outputs.container-version
733734 }};
734735 LATEST_TAG=$REGISTRY_URL:latest;
735736 docker buildx build
736737 --push
737- --platform
738- linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x
738+ --platform $PLATFORMS
739739 --build-arg PROXYPY_PKG_PATH='dist/${{
740740 needs.pre-setup.outputs.wheel-artifact-name
741741 }}'
742742 -t $CONTAINER_TAG
743743 -t $LATEST_TAG .
744+ - name : Login to DockerHub
745+ uses : docker/login-action@v1
746+ with :
747+ username : abhinavsingh
748+ password : ${{ secrets.DOCKER_ACCESS_TOKEN }}
749+ - name : Push to DockerHub
750+ run : >-
751+ PLATFORMS=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/s390x;
752+ REGISTRY_URL="abhinavsingh/proxy.py";
753+ CONTAINER_TAG=$REGISTRY_URL:${{
754+ needs.pre-setup.outputs.container-version
755+ }};
756+ docker buildx build
757+ --push
758+ --platform $PLATFORMS
759+ --build-arg PROXYPY_PKG_PATH='dist/${{
760+ needs.pre-setup.outputs.wheel-artifact-name
761+ }}'
762+ -t $CONTAINER_TAG .
744763
745764 check : # This job does nothing and is only used for the branch protection
746765 if : always()
0 commit comments