@@ -111,28 +111,29 @@ jobs:
111111 - uses : docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
112112 with :
113113 driver-opts : network=host
114- - uses : docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
115- if : ${{ startsWith(matrix.otp, '24') }}
116- with :
117- platforms : linux/${{ matrix.arch }}
118- cache-from : type=local,src=/tmp/.docker-buildx-cache,mode=max
119- build-args : |
120- BUILD_FROM=${{ steps.base_tag.outputs.image }}
121- OTP_VERSION=${{ matrix.otp }}
122- ELIXIR_VERSION=${{ matrix.elixir }}
123- BUILD_WITHOUT_QUIC=1
124- EMQTT_BENCH_VERSION=0.4.5
125- LUX_VERSION=lux-2.6
126- file : ./Dockerfile
127- context : .
128- - uses : docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
129- if : ${{ ! startsWith(matrix.otp, '24') }}
114+ - name : Build and load docker image
115+ uses : docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
130116 with :
131117 platforms : " linux/${{ matrix.arch }}"
118+ load : true # Load the image to the runner's docker daemon
119+ tags : test-image:latest
132120 cache-from : type=local,src=/tmp/.docker-buildx-cache,mode=max
133121 build-args : |
134122 BUILD_FROM=${{ steps.base_tag.outputs.image }}
135123 OTP_VERSION=${{ matrix.otp }}
136124 ELIXIR_VERSION=${{ matrix.elixir }}
125+ BUILD_WITHOUT_QUIC=${{ startsWith(matrix.otp, '24') && 1 || '' }}
126+ EMQTT_BENCH_VERSION=${{ startsWith(matrix.otp, '24') && '0.4.5' || '' }}
127+ LUX_VERSION=${{ startsWith(matrix.otp, '24') && 'lux-2.6' || '' }}
137128 file : ./Dockerfile
138129 context : .
130+ - name : Test OTP 27 Image (Rust Toolchain should be installed)
131+ if : startsWith(matrix.otp, '27')
132+ run : |
133+ docker run --rm test-image:latest bash -c 'rustup toolchain list' | \
134+ grep "1.88.0"
135+ - name : Test non-OTP 27 Image (Rust Toolchain should NOT be installed)
136+ if : " !startsWith(matrix.otp, '27')"
137+ run : |
138+ docker run --rm test-image:latest bash -c 'rustup toolchain list' | \
139+ grep "no installed toolchains"
0 commit comments