From d4359c593cc4f50c2213d1517323c78890a4a871 Mon Sep 17 00:00:00 2001 From: Tim Sutton Date: Wed, 3 Jan 2024 10:52:20 +0000 Subject: [PATCH] Updating build for Tharanath --- .github/workflows/nix-build.yml | 6 ++++-- deployment/docker/Dockerfile | 10 ++++++++++ deployment/image-index.yml | 4 ++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 deployment/docker/Dockerfile create mode 100644 deployment/image-index.yml 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