diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0133907..a2b1589 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -11,6 +11,15 @@ jobs: - name: Clone the repo uses: actions/checkout@v4 + - name: Build docker image + run: | + docker build --no-cache \ + --build-arg FORGE_URL="${{ vars.FORGE_URL }}" \ + --build-arg FORGE_USER="${{ vars.FORGE_USER }}" \ + --build-arg FORGE_REPO="${{ vars.FORGE_REPO }}" \ + --build-arg FORGE_BRANCH="${{ vars.FORGE_BRANCH }}" \ + -t klbr-blog . + - name: Build docker image run: docker build -t klbr-blog . diff --git a/Dockerfile b/Dockerfile index 1e72550..79f2a71 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,17 @@ WORKDIR /app COPY package*.json ./ RUN npm install COPY . . + +ARG FORGE_URL +ARG FORGE_USER +ARG FORGE_REPO +ARG FORGE_BRANCH + +ENV PUBLIC_FORGE_URL=$FORGE_URL +ENV PUBLIC_FORGE_USER=$FORGE_USER +ENV PUBLIC_FORGE_REPO=$FORGE_REPO +ENV PUBLIC_FORGE_BRANCH=$FORGE_BRANCH + RUN npm run build FROM nginx:alpine AS runtime diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 8938563..3e28303 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -5,7 +5,7 @@ import "../styles/footer.css";