Skip to content

Commit

Permalink
ci: fix build-args quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Mar 12, 2024
1 parent 272a634 commit 7365d94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
id: public_url
run: |
if [ -z "${{ vars.PUBLIC_URL }}" ]; then
PUBLIC_URL="https://${{ needs.env.outputs.app_name_suffix }}.${{ vars.KUBE_INGRESS_BASE_DOMAIN }}"
PUBLIC_URL="https://${{ needs.env.outputs.app_name }}.${{ vars.KUBE_INGRESS_BASE_DOMAIN }}"
else
PUBLIC_URL="${{ vars.PUBLIC_URL }}"
fi
Expand Down Expand Up @@ -97,10 +97,10 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
NUXT_PUBLIC_APP_BASE_URL="${{ needs.vars.outputs.public_url }}"
NUXT_PUBLIC_MATOMO_BASE_URL="${{ vars.NUXT_PUBLIC_MATOMO_BASE_URL }}"
NUXT_PUBLIC_MATOMO_ID="${{ vars.NUXT_PUBLIC_MATOMO_ID }}"
NUXT_PUBLIC_REDMINE_ID="${{ vars.SERVICE_ID }}"
"NUXT_PUBLIC_APP_BASE_URL=${{ needs.vars.outputs.public_url }}"
"NUXT_PUBLIC_MATOMO_BASE_URL=${{ vars.NUXT_PUBLIC_MATOMO_BASE_URL }}"
"NUXT_PUBLIC_MATOMO_ID=${{ vars.NUXT_PUBLIC_MATOMO_ID }}"
"NUXT_PUBLIC_REDMINE_ID=${{ vars.SERVICE_ID }}"
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down
1 change: 0 additions & 1 deletion server/routes/robots.txt.get.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
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 7365d94

Please sign in to comment.