Skip to content

Commit 91035b3

Browse files
committed
Set component versions on stable versions
1 parent 7017114 commit 91035b3

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

.github/workflows/release-stable.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,23 @@ jobs:
6262
- uses: actions/checkout@v4
6363
- run: |
6464
sed -i".bak" -e "s/unstable/stable-${{ github.event.inputs.version }}/" *.yml
65+
# Set all component versions in Dockerfiles and uncomment ARG lines
66+
# Jicofo
67+
sed -i -E "s/^#?(ARG JICOFO_VERSION=).*/\1${{ needs.version.outputs.jicofo_version }}/" jicofo/Dockerfile
68+
# Jigasi
69+
sed -i -E "s/^#?(ARG JIGASI_VERSION=).*/\1${{ needs.version.outputs.jigasi_version }}/" jigasi/Dockerfile
70+
sed -i -E "s/^#?(ARG JITSI_AUTOSCALER_SIDECAR_VERSION=).*/\1${{ needs.version.outputs.jigasi_version }}/" jigasi/Dockerfile
71+
# JVB
72+
sed -i -E "s/^#?(ARG JITSI_VIDEOBRIDGE_VERSION=).*/\1${{ needs.version.outputs.jvb_version }}/" jvb/Dockerfile
73+
sed -i -E "s/^#?(ARG JITSI_AUTOSCALER_SIDECAR_VERSION=).*/\1${{ needs.version.outputs.jvb_version }}/" jvb/Dockerfile
74+
# Prosody
75+
sed -i -E "s/^#?(ARG JITSI_MEET_PROSODY_VERSION=).*/\1${{ needs.version.outputs.prosody_version }}/" prosody/Dockerfile
76+
# Web
77+
sed -i -E "s/^#?(ARG JITSI_MEET_WEB_VERSION=).*/\1${{ needs.version.outputs.web_version }}/" web/Dockerfile
78+
# Jibri
79+
sed -i -E "s/^#?(ARG JIBRI_VERSION=).*/\1${{ needs.version.outputs.jibri_version }}/" jibri/Dockerfile
80+
sed -i -E "s/^#?(ARG JITSI_UPLOAD_INTEGRATIONS_VERSION=).*/\1${{ needs.version.outputs.jibri_version }}/" jibri/Dockerfile
81+
sed -i -E "s/^#?(ARG JITSI_AUTOSCALER_SIDECAR_VERSION=).*/\1${{ needs.version.outputs.jibri_version }}/" jibri/Dockerfile
6582
- uses: stefanzweifel/git-auto-commit-action@v5
6683
with:
6784
# multiline commit message including the version numbers for all components
@@ -82,6 +99,23 @@ jobs:
8299
generate_release_notes: true
83100
make_latest: true
84101
- run: |
102+
# Comment out all ARG lines for component versions in Dockerfiles
103+
# Jicofo
104+
sed -i -E "s/^(ARG JICOFO_VERSION=)/#\1/" jicofo/Dockerfile
105+
# Jigasi
106+
sed -i -E "s/^(ARG JIGASI_VERSION=)/#\1/" jigasi/Dockerfile
107+
sed -i -E "s/^(ARG JITSI_AUTOSCALER_SIDECAR_VERSION=)/#\1/" jigasi/Dockerfile
108+
# JVB
109+
sed -i -E "s/^(ARG JITSI_VIDEOBRIDGE_VERSION=)/#\1/" jvb/Dockerfile
110+
sed -i -E "s/^(ARG JITSI_AUTOSCALER_SIDECAR_VERSION=)/#\1/" jvb/Dockerfile
111+
# Prosody
112+
sed -i -E "s/^(ARG JITSI_MEET_PROSODY_VERSION=)/#\1/" prosody/Dockerfile
113+
# Web
114+
sed -i -E "s/^(ARG JITSI_MEET_WEB_VERSION=)/#\1/" web/Dockerfile
115+
# Jibri
116+
sed -i -E "s/^(ARG JIBRI_VERSION=)/#\1/" jibri/Dockerfile
117+
sed -i -E "s/^(ARG JITSI_UPLOAD_INTEGRATIONS_VERSION=)/#\1/" jibri/Dockerfile
118+
sed -i -E "s/^(ARG JITSI_AUTOSCALER_SIDECAR_VERSION=)/#\1/" jibri/Dockerfile
85119
sed -i".bak" -e "s/stable-${{ github.event.inputs.version }}/unstable/" *.yml
86120
- uses: stefanzweifel/git-auto-commit-action@v5
87121
with:

notes.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# How to build jvb image for local only
2+
3+
```
4+
make build_base
5+
make build_base-java
6+
make build_jvb
7+
```

test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
#export X=Y
4+
export X=""
5+
6+
# if X is unset or empty, then show "hello", else show hello=Y, using bash parameter expansion
7+
echo "hello${X:+=$X}"

0 commit comments

Comments
 (0)