4747 gh_buildx_version : ${{ steps.set_env_variables.outputs.BUILDX_VERSION }}
4848 gh_buildx_platforms : ${{ steps.set_env_variables.outputs.BUILDX_PLATFORMS }}
4949 gh_buildx_endpoint : ${{ steps.set_env_variables.outputs.BUILDX_ENDPOINT }}
50- build_proxy : ${{ steps.changed_files.outputs.proxy_any_changed }}
51- build_apiserver : ${{ steps.changed_files.outputs.apiserver_any_changed }}
52- build_admin : ${{ steps.changed_files.outputs.admin_any_changed }}
53- build_space : ${{ steps.changed_files.outputs.space_any_changed }}
54- build_web : ${{ steps.changed_files.outputs.web_any_changed }}
55- build_live : ${{ steps.changed_files.outputs.live_any_changed }}
5650
5751 dh_img_web : ${{ steps.set_env_variables.outputs.DH_IMG_WEB }}
5852 dh_img_space : ${{ steps.set_env_variables.outputs.DH_IMG_SPACE }}
@@ -123,46 +117,7 @@ jobs:
123117 name : Checkout Files
124118 uses : actions/checkout@v4
125119
126- - name : Get changed files
127- id : changed_files
128- uses : tj-actions/changed-files@v42
129- with :
130- files_yaml : |
131- apiserver:
132- - apiserver/**
133- proxy:
134- - nginx/**
135- admin:
136- - admin/**
137- - packages/**
138- - "package.json"
139- - "yarn.lock"
140- - "tsconfig.json"
141- - "turbo.json"
142- space:
143- - space/**
144- - packages/**
145- - "package.json"
146- - "yarn.lock"
147- - "tsconfig.json"
148- - "turbo.json"
149- web:
150- - web/**
151- - packages/**
152- - "package.json"
153- - "yarn.lock"
154- - "tsconfig.json"
155- - "turbo.json"
156- live:
157- - live/**
158- - packages/**
159- - 'package.json'
160- - 'yarn.lock'
161- - 'tsconfig.json'
162- - 'turbo.json'
163-
164120 branch_build_push_admin :
165- if : ${{ needs.branch_build_setup.outputs.build_admin == 'true' || github.event_name == 'workflow_dispatch' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}
166121 name : Build-Push Admin Docker Image
167122 runs-on : ubuntu-22.04
168123 needs : [branch_build_setup]
@@ -185,7 +140,6 @@ jobs:
185140 buildx-endpoint : ${{ needs.branch_build_setup.outputs.gh_buildx_endpoint }}
186141
187142 branch_build_push_web :
188- if : ${{ needs.branch_build_setup.outputs.build_web == 'true' || github.event_name == 'workflow_dispatch' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}
189143 name : Build-Push Web Docker Image
190144 runs-on : ubuntu-22.04
191145 needs : [branch_build_setup]
@@ -208,7 +162,6 @@ jobs:
208162 buildx-endpoint : ${{ needs.branch_build_setup.outputs.gh_buildx_endpoint }}
209163
210164 branch_build_push_space :
211- if : ${{ needs.branch_build_setup.outputs.build_space == 'true' || github.event_name == 'workflow_dispatch' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}
212165 name : Build-Push Space Docker Image
213166 runs-on : ubuntu-22.04
214167 needs : [branch_build_setup]
@@ -231,7 +184,6 @@ jobs:
231184 buildx-endpoint : ${{ needs.branch_build_setup.outputs.gh_buildx_endpoint }}
232185
233186 branch_build_push_live :
234- if : ${{ needs.branch_build_setup.outputs.build_live == 'true' || github.event_name == 'workflow_dispatch' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}
235187 name : Build-Push Live Collaboration Docker Image
236188 runs-on : ubuntu-22.04
237189 needs : [branch_build_setup]
@@ -254,7 +206,6 @@ jobs:
254206 buildx-endpoint : ${{ needs.branch_build_setup.outputs.gh_buildx_endpoint }}
255207
256208 branch_build_push_apiserver :
257- if : ${{ needs.branch_build_setup.outputs.build_apiserver == 'true' || github.event_name == 'workflow_dispatch' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}
258209 name : Build-Push API Server Docker Image
259210 runs-on : ubuntu-22.04
260211 needs : [branch_build_setup]
@@ -277,7 +228,6 @@ jobs:
277228 buildx-endpoint : ${{ needs.branch_build_setup.outputs.gh_buildx_endpoint }}
278229
279230 branch_build_push_proxy :
280- if : ${{ needs.branch_build_setup.outputs.build_proxy == 'true' || github.event_name == 'workflow_dispatch' || needs.branch_build_setup.outputs.gh_branch_name == 'master' }}
281231 name : Build-Push Proxy Docker Image
282232 runs-on : ubuntu-22.04
283233 needs : [branch_build_setup]
@@ -299,31 +249,6 @@ jobs:
299249 buildx-platforms : ${{ needs.branch_build_setup.outputs.gh_buildx_platforms }}
300250 buildx-endpoint : ${{ needs.branch_build_setup.outputs.gh_buildx_endpoint }}
301251
302- attach_assets_to_build :
303- if : ${{ needs.branch_build_setup.outputs.build_type == 'Release' }}
304- name : Attach Assets to Release
305- runs-on : ubuntu-22.04
306- needs : [branch_build_setup]
307- steps :
308- - name : Checkout
309- uses : actions/checkout@v4
310-
311- - name : Update Assets
312- run : |
313- cp ./deploy/selfhost/install.sh deploy/selfhost/setup.sh
314-
315- - name : Attach Assets
316- id : attach_assets
317- uses : actions/upload-artifact@v4
318- with :
319- name : selfhost-assets
320- retention-days : 2
321- path : |
322- ${{ github.workspace }}/deploy/selfhost/setup.sh
323- ${{ github.workspace }}/deploy/selfhost/restore.sh
324- ${{ github.workspace }}/deploy/selfhost/docker-compose.yml
325- ${{ github.workspace }}/deploy/selfhost/variables.env
326-
327252 publish_release :
328253 if : ${{ needs.branch_build_setup.outputs.build_type == 'Release' }}
329254 name : Build Release
@@ -337,7 +262,6 @@ jobs:
337262 branch_build_push_live,
338263 branch_build_push_apiserver,
339264 branch_build_push_proxy,
340- attach_assets_to_build,
341265 ]
342266 env :
343267 REL_VERSION : ${{ needs.branch_build_setup.outputs.release_version }}
@@ -348,6 +272,8 @@ jobs:
348272 - name : Update Assets
349273 run : |
350274 cp ./deploy/selfhost/install.sh deploy/selfhost/setup.sh
275+ sed -i 's/${APP_RELEASE:-stable}/${APP_RELEASE:-'${REL_VERSION}'}/g' deploy/selfhost/docker-compose.yml
276+ sed -i 's/APP_RELEASE=stable/APP_RELEASE='${REL_VERSION}'/g' deploy/selfhost/variables.env
351277
352278 - name : Create Release
353279 id : create_release
@@ -362,6 +288,7 @@ jobs:
362288 generate_release_notes : true
363289 files : |
364290 ${{ github.workspace }}/deploy/selfhost/setup.sh
291+ ${{ github.workspace }}/deploy/selfhost/swarm.sh
365292 ${{ github.workspace }}/deploy/selfhost/restore.sh
366293 ${{ github.workspace }}/deploy/selfhost/docker-compose.yml
367294 ${{ github.workspace }}/deploy/selfhost/variables.env
0 commit comments