@@ -44,19 +44,28 @@ jobs:
44
44
- name : Checkout repository
45
45
uses : actions/checkout@v4
46
46
47
- - name : Extract version number
48
- id : extract_version
47
+ - name : Extract server version number
48
+ id : extract_server_version
49
49
uses : actions/github-script@v7
50
50
with :
51
51
script : |
52
- const agentVersion = '${{ matrix.server_version }}';
53
- const version = agentVersion.split('-')[0];
54
- core.setOutput('version', version);
52
+ const serverVersion = '${{ matrix.server_version }}';
53
+ const server_version = serverVersion.split('-')[0];
54
+ core.setOutput('server_version', server_version);
55
+
56
+ - name : Extract db version number
57
+ id : extract_db_version
58
+ uses : actions/github-script@v7
59
+ with :
60
+ script : |
61
+ const dbVersion = '${{ matrix.db_version }}';
62
+ const db_version = dbVersion.split('-')[0];
63
+ core.setOutput('db_version', db_version);
55
64
56
65
- name : Build Ubuntu image
57
66
uses : docker/build-push-action@v6
58
67
with :
59
- tags : ' ci/openvoxserver:${{ steps.extract_version .outputs.version }}'
68
+ tags : ' ci/openvoxserver:${{ steps.extract_server_version .outputs.server_version }}'
60
69
context : openvoxserver
61
70
file : openvoxserver/Containerfile
62
71
push : false
@@ -71,14 +80,14 @@ jobs:
71
80
if : ${{ matrix.release == '8' }}
72
81
uses : docker/build-push-action@v6
73
82
with :
74
- tags : ' ci/openvoxserver:${{ steps.extract_version .outputs.version }}-alpine'
83
+ tags : ' ci/openvoxserver:${{ steps.extract_server_version .outputs.server_version }}-alpine'
75
84
context : openvoxserver
76
85
file : openvoxserver/Containerfile.alpine
77
86
push : false
78
87
build-args : |
79
88
OPENVOX_RELEASE=${{ matrix.release }}
80
- OPENVOXSERVER_VERSION=${{ matrix .server_version }}
81
- OPENVOXDB_VERSION=${{ matrix .db_version }}
89
+ OPENVOXSERVER_VERSION=${{ steps.extract_server_version.outputs .server_version }}
90
+ OPENVOXDB_VERSION=${{ steps.extract_db_version.outputs .db_version }}
82
91
R10K_VERSION=${{ matrix.r10k_version }}
83
92
84
93
tests :
0 commit comments