From 8444821252a2abe65806d445d5e403ad2d2af48c Mon Sep 17 00:00:00 2001 From: Raphael Bitton Date: Thu, 9 Oct 2025 19:26:45 -0500 Subject: [PATCH] trying out deployments --- .gitea/workflows/deploy.yml | 17 +++++++++++++++++ .gitmodules | 3 +++ Dockerfile | 13 ++++++++++++- src/config.toml | 10 ++++++++++ src/content/_index.md | 6 +++++- 5 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..77f5653 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,17 @@ +name: Build and Deploy Zola Site +on: + push: + branches: [ main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out repo + uses: actions/checkout@v4 + + - name: Build Zola site + run: | + docker compose build + docker compose up -d diff --git a/.gitmodules b/.gitmodules index 1304f92..874983b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "src/themes/terminus"] path = src/themes/terminus url = https://github.com/ebkalderon/terminus.git +[submodule "src/content/resume"] + path = src/content/resume + url = https://git.rbitton.com/rbitton/Resume.git diff --git a/Dockerfile b/Dockerfile index 484e314..c397769 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,21 @@ FROM alpine:3.20 AS builder RUN echo "@community https://dl-cdn.alpinelinux.org/alpine/v3.20/community" \ >> /etc/apk/repositories && \ - apk add --no-cache zola + apk add --no-cache zola git WORKDIR /site COPY src/ . + + +RUN git clone https://git.rbitton.com/rbitton/Resume.git /tmp/resume && \ + mkdir -p static/files && \ + mkdir -p content/resume && \ + # cp /tmp/resume/RAPHAEL_BITTON.pdf static/files/ && \ + sh -c "(printf '+++\n\ +title = \"Resume\"\n\ +date = 2025-10-09\n\ ++++\n\n' && cat /tmp/resume/RAPHAEL_BITTON.md) > content/resume/_index.md" + RUN zola build --force FROM nginx:alpine diff --git a/src/config.toml b/src/config.toml index ffa11e3..d0b1e6f 100644 --- a/src/config.toml +++ b/src/config.toml @@ -9,6 +9,7 @@ build_search_index = false theme = "terminus" title = "Raphael Bitton" +author = "Raphael Bitton" [markdown] # Whether to do syntax highlighting @@ -17,3 +18,12 @@ highlight_code = false [extra] # Put all your custom variables here +main_menu = [ + { name = "about", url = "about", trailing_slash = true}, + { name = "resume", url = "resume", trailing_slash = true}, + { name = "meditations", url = "meditations", trailing_slash = true}, + { name = "git", url = "https://git.rbitton.com/rbitton", new_tab = true }, + { name = "flights", url = "https://flights.rbitton.com/share/public", new_tab = true }, +] + +copyright = "© $YEAR $AUTHOR" diff --git a/src/content/_index.md b/src/content/_index.md index 6b38d6e..af5abf1 100644 --- a/src/content/_index.md +++ b/src/content/_index.md @@ -1,4 +1,8 @@ +++ title = "Home" -paginate_by = 5 + +[extra] +framed = true +++ + +Hello! My name is Raphael Bitton and I am an undergraduate at the University of Chicago studying Data Science and Music.