Skip to content

Commit

Permalink
chore: Include sidecar version number change to version_change.sh scr…
Browse files Browse the repository at this point in the history
…ipt (#1952)

* chore: upgrade in develop sidecar version number

Refs: XRDDEV-2578

* chore: include sidecar version number change to version_change.sh script

Refs: XRDDEV-2578
  • Loading branch information
enelir authored Feb 6, 2024
1 parent f519222 commit 2c956dc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sidecar/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ for i in "$@" ; do
done

dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >&/dev/null && pwd)"
version="${1:-7.4.1}"
version="${1:-7.5.0}"
tag="${2:-xroad-security-server-sidecar}"
repo="${3-}"
dist="${4-}"
Expand Down
2 changes: 1 addition & 1 deletion sidecar/kubernetes/security-server-sidecar-slim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
claimName: "sidecar-config-slim-claim"
containers:
- name: security-server-sidecar-slim
image: niis/xroad-security-server-sidecar:7.4.1-slim
image: niis/xroad-security-server-sidecar:7.5.0-slim
imagePullPolicy: "Always"
volumeMounts:
- name: sidecar-config-slim-volume
Expand Down
2 changes: 1 addition & 1 deletion sidecar/kubernetes/security-server-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ spec:
claimName: "sidecar-config-claim"
containers:
- name: security-server-sidecar
image: niis/xroad-security-server-sidecar:7.4.1
image: niis/xroad-security-server-sidecar:7.5.0
imagePullPolicy: "Always"
volumeMounts:
- name: sidecar-config-volume
Expand Down
3 changes: 3 additions & 0 deletions src/version_change.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ fi

sed -i "s/^xroadVersion.*$/xroadVersion=$VERSION/" gradle.properties
sed -i "s/^VERSION=$CURRENT_VERSION.*$/VERSION=$VERSION/" packages/build-rpm.sh
sed -i "s/{1:-$CURRENT_VERSION}/{1:-$VERSION}/" ../sidecar/docker-build.sh
sed -i "s/xroad-security-server-sidecar:$CURRENT_VERSION-slim/xroad-security-server-sidecar:$VERSION-slim/" ../sidecar/kubernetes/security-server-sidecar-slim.yaml
sed -i "s/xroad-security-server-sidecar:$CURRENT_VERSION/xroad-security-server-sidecar:$VERSION/" ../sidecar/kubernetes/security-server-sidecar.yaml

echo "Version updated to $VERSION"

Expand Down

0 comments on commit 2c956dc

Please sign in to comment.