Merge pull request #13306 from zmstone/0620-ci-pull-haproxy-image-from-ghcr

ci: pull haproxy image from ghcr
This commit is contained in:
zmstone 2024-06-20 13:46:47 +02:00 committed by GitHub
commit 24bc54035a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -177,6 +177,7 @@ backend emqx_wss_back
server emqx-2 $NODE2:8083 check-send-proxy send-proxy-v2-ssl-cn server emqx-2 $NODE2:8083 check-send-proxy send-proxy-v2-ssl-cn
EOF EOF
HAPROXY_IMAGE='ghcr.io/haproxytech/haproxy-docker-alpine:2.4.27'
haproxy_cid=$(docker run -d --name haproxy \ haproxy_cid=$(docker run -d --name haproxy \
--net "$NET" \ --net "$NET" \
@ -184,8 +185,8 @@ haproxy_cid=$(docker run -d --name haproxy \
-v "$(pwd)/apps/emqx/etc/certs:/usr/local/etc/haproxy/certs" \ -v "$(pwd)/apps/emqx/etc/certs:/usr/local/etc/haproxy/certs" \
-w /usr/local/etc/haproxy \ -w /usr/local/etc/haproxy \
"${HAPROXY_PORTS[@]}" \ "${HAPROXY_PORTS[@]}" \
"public.ecr.aws/docker/library/haproxy:2.4" \ "${HAPROXY_IMAGE}" \
bash -c 'set -euo pipefail; sh -c 'set -euo pipefail;
cat certs/cert.pem certs/key.pem > /tmp/emqx.pem; cat certs/cert.pem certs/key.pem > /tmp/emqx.pem;
haproxy -f haproxy.cfg') haproxy -f haproxy.cfg')