Skip to content

Commit

Permalink
ci: add log
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Mar 12, 2024
1 parent 1497886 commit 272a634
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
echo "APP_NAME_SUFFIX=$APP_NAME_SUFFIX" >> $GITHUB_OUTPUT
outputs:
environment: "${{ steps.environment.outputs.ENVIRONMENT }}"
app_name_suffix: "${{ steps.environment.outputs.APP_NAME_SUFFIX }}"
app_name: "frischmuth-frontend${{ steps.environment.outputs.APP_NAME_SUFFIX }}"
registry: ghcr.io
image: ${{ github.repository }}

Expand All @@ -45,8 +45,8 @@ jobs:
- name: Generate public URL
id: public_url
run: |
if [[ -z "${{ vars.PUBLIC_URL }}" ]]; then
PUBLIC_URL=https://${{ needs.env.outputs.app_name_suffix }}.${{ vars.KUBE_INGRESS_BASE_DOMAIN }}
if [ -z "${{ vars.PUBLIC_URL }}" ]; then
PUBLIC_URL="https://${{ needs.env.outputs.app_name_suffix }}.${{ vars.KUBE_INGRESS_BASE_DOMAIN }}"
else
PUBLIC_URL="${{ vars.PUBLIC_URL }}"
fi
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
with:
environment: ${{ needs.env.outputs.environment }}
DOCKER_TAG: ${{ needs.env.outputs.registry }}/${{ needs.env.outputs.image }}
APP_NAME: "frontend${{ needs.env.outputs.app_name_suffix }}"
APP_NAME: "${{ needs.env.outputs.app_name }}"
APP_ROOT: "/"
SERVICE_ID: "${{ vars.SERVICE_ID }}"
PUBLIC_URL: "${{ needs.vars.outputs.public_url }}"
Expand Down
1 change: 1 addition & 0 deletions server/routes/robots.txt.get.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { createUrl } from "@acdh-oeaw/lib";
import { z } from "zod";

console.log(JSON.stringify({ baseUrl: process.env.NUXT_PUBLIC_APP_BASE_URL }));
const baseUrl = z.string().url().parse(process.env.NUXT_PUBLIC_APP_BASE_URL);
const bots = z.enum(["disabled", "enabled"]).optional().parse(process.env.NUXT_PUBLIC_BOTS);
const isIndexable = bots === "enabled";
Expand Down

0 comments on commit 272a634

Please sign in to comment.