Fix version in the examples
This commit is contained in:
parent
bc2e7e779d
commit
c58c3509dc
8 changed files with 14 additions and 12 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
|
@ -138,12 +138,14 @@ jobs:
|
||||||
if [ "$TAG" = "$CURRENT_VERSION" ]; then
|
if [ "$TAG" = "$CURRENT_VERSION" ]; then
|
||||||
echo "Skipping update version..."
|
echo "Skipping update version..."
|
||||||
else
|
else
|
||||||
sed -i "s#easy-haproxy:[a-zA-Z0-9\.]*#easy-haproxy:$TAG#g" deploy/docker/docker-compose.yml
|
sed -i "s#easy-haproxy:[a-zA-Z0-9\.-]*#easy-haproxy:$TAG#g" deploy/docker/docker-compose.yml
|
||||||
sed -i "s#version: \"[a-zA-Z0-9\.]*\"#version: \"$TAG\"#g" deploy/kubernetes/easyhaproxy-*.yml
|
sed -i "s#version: \"[a-zA-Z0-9\.-]*\"#version: \"$TAG\"#g" deploy/kubernetes/easyhaproxy-*.yml
|
||||||
sed -i "s#easy-haproxy:[a-zA-Z0-9\.]*#easy-haproxy:$TAG#g" deploy/kubernetes/easyhaproxy-*.yml
|
sed -i "s#easy-haproxy:[a-zA-Z0-9\.-]*#easy-haproxy:$TAG#g" deploy/kubernetes/easyhaproxy-*.yml
|
||||||
|
|
||||||
sed -i "s#easy-haproxy/[a-zA-Z0-9\.]*/#easy-haproxy/$TAG/#g" docs/kubernetes.md
|
sed -i "s#easy-haproxy/[a-zA-Z0-9\.-]*/#easy-haproxy/$TAG/#g" docs/kubernetes.md
|
||||||
sed -i "s#appVersion: \"[a-zA-Z0-9\.]*\"#appVersion: \"$TAG\"#g" helm/easyhaproxy/Chart.yaml
|
sed -i "s#appVersion: \"[a-zA-Z0-9\.-]*\"#appVersion: \"$TAG\"#g" helm/easyhaproxy/Chart.yaml
|
||||||
|
|
||||||
|
find examples -type f -name '*.yml' -exec sed -i "s#\(byjg/easy-haproxy:\)[a-zA-Z0-9\.-]*#\1$TAG#g" {} \; -print
|
||||||
|
|
||||||
VERSION=$(grep "version: " helm/easyhaproxy/Chart.yaml | sed 's#version: ##g')
|
VERSION=$(grep "version: " helm/easyhaproxy/Chart.yaml | sed 's#version: ##g')
|
||||||
NEW_VERSION=$(echo $VERSION | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.)
|
NEW_VERSION=$(echo $VERSION | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.)
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
haproxy:
|
haproxy:
|
||||||
image: byjg/easy-haproxy
|
image: byjg/easy-haproxy:4.3.1-rc1
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
haproxy:
|
haproxy:
|
||||||
image: byjg/easy-haproxy
|
image: byjg/easy-haproxy:4.3.1-rc1
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
haproxy:
|
haproxy:
|
||||||
image: byjg/easy-haproxy
|
image: byjg/easy-haproxy:4.3.1-rc1
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
easyhaproxy:
|
easyhaproxy:
|
||||||
image: byjg/easy-haproxy
|
image: byjg/easy-haproxy:4.3.1-rc1
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- certs_certbot:/certs/certbot
|
- certs_certbot:/certs/certbot
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
haproxy:
|
haproxy:
|
||||||
image: byjg/easy-haproxy
|
image: byjg/easy-haproxy:4.3.1-rc1
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./host2.local.pem:/certs/haproxy/host2.local.pem
|
- ./host2.local.pem:/certs/haproxy/host2.local.pem
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
haproxy:
|
haproxy:
|
||||||
image: byjg/easy-haproxy
|
image: byjg/easy-haproxy:4.3.1-rc1
|
||||||
volumes:
|
volumes:
|
||||||
- ./conf/:/etc/haproxy/static/
|
- ./conf/:/etc/haproxy/static/
|
||||||
- ./host1.local.pem:/certs/haproxy/host1.local.pem
|
- ./host1.local.pem:/certs/haproxy/host1.local.pem
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
haproxy:
|
haproxy:
|
||||||
image: byjg/easy-haproxy:4.3.1-rc2
|
image: byjg/easy-haproxy:4.3.1-rc1
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- ./certs:/certs/haproxy
|
- ./certs:/certs/haproxy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue