Skip to content

Commit

Permalink
Fix version in the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg committed Jul 4, 2023
1 parent bc2e7e7 commit c58c350
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 12 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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=.)
Expand Down
2 changes: 1 addition & 1 deletion docs/swarm.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion examples/docker/docker-compose-changed-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion examples/docker/docker-compose-multi-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion examples/docker/docker-compose-portainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/static/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/swarm/easyhaproxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c58c350

Please sign in to comment.