File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
website/content/.vitepress Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 1- name : CI
1+ name : Deploy apps
22on :
33 push :
44 branches :
2727 - name : Deploy website
2828 run : |
2929 ssh app sh <<EOF
30+
3031 cd FAIRSenDD
31- git pull
32+ git fetch
33+ git checkout ${{ github.sha }}
34+
3235 cd website
33- sh run.sh
36+ # render needs to be outside of docker build because docker is called itself
37+ rm -rf content/out.zarr || :
38+ ls content/*.qmd | xargs -i -P 4 quarto render {}
39+
40+ cd ../infrastructure/app
41+ echo ${{ secrets.DOCKER_PASSWORD }} | docker login --username ${{ vars.DOCKER_USERNAME }} --password-stdin
42+ docker compose build
43+ docker compose push
44+ docker compose up --detach
3445 EOF
Original file line number Diff line number Diff line change @@ -107,6 +107,13 @@ export default defineConfig({
107107 } ,
108108 } ,
109109 } ,
110+ vite : {
111+ server : {
112+ allowedHosts : [
113+ 'fairsendd.eodchosting.eu' ,
114+ ] ,
115+ }
116+ } ,
110117 themeConfig : {
111118 // https://vitepress.dev/reference/default-theme-config
112119
@@ -141,5 +148,5 @@ export default defineConfig({
141148 ` ,
142149 copyright : `© Copyright ${ new Date ( ) . getUTCFullYear ( ) } .`
143150 } ,
144- }
151+ } ,
145152} )
You can’t perform that action at this time.
0 commit comments