1
0
Fork 0

Fix version in the examples

This commit is contained in:
Joao Gilberto Magalhaes 2023-07-03 21:35:01 -05:00
parent bc2e7e779d
commit c58c3509dc
8 changed files with 14 additions and 12 deletions

View file

@ -138,12 +138,14 @@ jobs:
if [ "$TAG" = "$CURRENT_VERSION" ]; then
echo "Skipping update version..."
else
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#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/docker/docker-compose.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" docs/kubernetes.md
sed -i "s#appVersion: \"[a-zA-Z0-9\.]*\"#appVersion: \"$TAG\"#g" helm/easyhaproxy/Chart.yaml
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
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')
NEW_VERSION=$(echo $VERSION | awk -F. '/[0-9]+\./{$NF++;print}' OFS=.)

View file

@ -25,7 +25,7 @@ version: "3"
services:
haproxy:
image: byjg/easy-haproxy
image: byjg/easy-haproxy:4.3.1-rc1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:

View file

@ -8,7 +8,7 @@ version: "3"
services:
haproxy:
image: byjg/easy-haproxy
image: byjg/easy-haproxy:4.3.1-rc1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:

View file

@ -11,7 +11,7 @@ version: "3"
services:
haproxy:
image: byjg/easy-haproxy
image: byjg/easy-haproxy:4.3.1-rc1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:

View file

@ -8,7 +8,7 @@ version: "3"
services:
easyhaproxy:
image: byjg/easy-haproxy
image: byjg/easy-haproxy:4.3.1-rc1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- certs_certbot:/certs/certbot

View file

@ -19,7 +19,7 @@ version: "3"
services:
haproxy:
image: byjg/easy-haproxy
image: byjg/easy-haproxy:4.3.1-rc1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./host2.local.pem:/certs/haproxy/host2.local.pem

View file

@ -5,7 +5,7 @@ version: "3"
services:
haproxy:
image: byjg/easy-haproxy
image: byjg/easy-haproxy:4.3.1-rc1
volumes:
- ./conf/:/etc/haproxy/static/
- ./host1.local.pem:/certs/haproxy/host1.local.pem

View file

@ -7,7 +7,7 @@ version: "3"
services:
haproxy:
image: byjg/easy-haproxy:4.3.1-rc2
image: byjg/easy-haproxy:4.3.1-rc1
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./certs:/certs/haproxy