diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml index b0a53ef9..ae8cf9f6 100644 --- a/.github/workflows/nix-build.yml +++ b/.github/workflows/nix-build.yml @@ -25,8 +25,10 @@ jobs: - uses: DeterminateSystems/magic-nix-cache-action@v2 - run: nix-shell --run "./english_build.sh" - run: | - mv ./docs/output/html/en /tmp/en - cd /tmp/en + mkdir /tmp/site + mv ./docs/output/html/en /tmp/site/en + cp -r deployment /tmp/site + cd /tmp/site git init . git add --all git config --local user.email "test@test.com" diff --git a/deployment/docker/Dockerfile b/deployment/docker/Dockerfile new file mode 100644 index 00000000..2dde96f2 --- /dev/null +++ b/deployment/docker/Dockerfile @@ -0,0 +1,10 @@ +FROM httpd:2.4.57-alpine3.18 + +#copy static folders and files +COPY docs /usr/local/apache2/htdocs/ + +#copy apache config +#COPY ./httpd.conf /usr/local/apache2/conf/httpd.conf + +#Expose port +EXPOSE 80 \ No newline at end of file diff --git a/deployment/image-index.yml b/deployment/image-index.yml new file mode 100644 index 00000000..83426439 --- /dev/null +++ b/deployment/image-index.yml @@ -0,0 +1,4 @@ +images: + - name: inasafe-docs + dockerfile: deployment/docker/Dockerfile + buildPath: . \ No newline at end of file