Skip to content

Commit

Permalink
staticmaps
Browse files Browse the repository at this point in the history
  • Loading branch information
dietrichmax committed Sep 8, 2024
1 parent fa07119 commit 9f6724a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,6 @@ jobs:
"NEXT_PUBLIC_MATOMO_API_KEY=${{ secrets.NEXT_PUBLIC_MATOMO_API_KEY }}"
"NEXT_PUBLIC_WEBMENTION_KEY=${{ secrets.NEXT_PUBLIC_WEBMENTION_KEY }}"
"NEXT_PUBLIC_GEODATA_URL=${{ secrets.NEXT_PUBLIC_GEODATA_URL }}"
"NEXT_PUBLIC_STATICMAPS_URL=${{ secrets.NEXT_PUBLIC_STATICMAPS_URL }}"
"DASHBOARD_GITHUB_PAK=${{ secrets.DASHBOARD_GITHUB_PAK }}"
"OPENWEATHER_API_KEY=${{ secrets.OPENWEATHER_API_KEY }}"
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ RUN --mount=type=secret,id=NEXT_PUBLIC_STRAPI_API_URL \
--mount=type=secret,id=NEXT_PUBLIC_MATOMO_API_KEY \
--mount=type=secret,id=NEXT_PUBLIC_WEBMENTION_KEY \
--mount=type=secret,id=NEXT_PUBLIC_GEODATA_URL \
--mount=type=secret,id=NEXT_PUBLIC_STATICMAPS_URL \
--mount=type=secret,id=DASHBOARD_GITHUB_PAK \
--mount=type=secret,id=OPENWEATHER_API_KEY \
export NEXT_PUBLIC_STRAPI_API_URL=$(cat /run/secrets/NEXT_PUBLIC_STRAPI_API_URL) && \
Expand All @@ -37,6 +38,7 @@ RUN --mount=type=secret,id=NEXT_PUBLIC_STRAPI_API_URL \
export NEXT_PUBLIC_MATOMO_API_KEY=$(cat /run/secrets/NEXT_PUBLIC_MATOMO_API_KEY) && \
export NEXT_PUBLIC_WEBMENTION_KEY=$(cat /run/secrets/NEXT_PUBLIC_WEBMENTION_KEY) && \
export NEXT_PUBLIC_GEODATA_URL=$(cat /run/secrets/NEXT_PUBLIC_GEODATA_URL) && \
export NEXT_PUBLIC_STATICMAPS_URL=$(cat /run/secrets/NEXT_PUBLIC_STATICMAPS_URL) && \
export DASHBOARD_GITHUB_PAK=$(cat /run/secrets/DASHBOARD_GITHUB_PAK) && \
export OPENWEATHER_API_KEY=$(cat /run/secrets/OPENWEATHER_API_KEY) && \
npm run build
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ You can see the site live here:
- **Framework**: [Next.js](https://nextjs.org/)
- **CMS**: [Strapi](https://strapi.io/) / [Repository](https://github.com/dietrichmax/personal-website-cms)
- **Database**: [Postgres](https://www.postgresql.org/)
- **Deployment**: [Netcup VPS](https://www.netcup.de/)
- **Deployment**: Docker on [Raspberry Pi 3 Model B+](https://www.raspberrypi.com/products/raspberry-pi-3-model-b-plus/) via GitHub Actions
- **Styling**: [Styled Components](https://styled-components.com/)
- **Analytics**: [Matomo](https://matomo.org/)

Expand Down
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export async function getStaticProps() {

// Get Background Image
const backgroundImageUrl = new URL(
`${process.env.NEXT_PUBLIC_GEODATA_URL}/staticmaps`
`${process.env.NEXT_PUBLIC_STATICMAPS_URL}`
)
backgroundImageUrl.searchParams.append("width", "3500")
backgroundImageUrl.searchParams.append("height", "2500")
Expand Down
Binary file modified public/wallpaper/backgroundImage.webp
Binary file not shown.

0 comments on commit 9f6724a

Please sign in to comment.