Skip to content

Commit

Permalink
separate site_url for x68 and arm
Browse files Browse the repository at this point in the history
  • Loading branch information
nemanjam committed Aug 30, 2024
1 parent 8da9f6e commit 715a95a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/default__build-push-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ on:

env:
IMAGE_NAME: ${{ github.event.repository.name }}
SITE_URL: 'https://nmc-docker.arm1.nemanjamitic.com'
SITE_URL_AMD64: 'https://nmc-docker.arm1.nemanjamitic.com'
SITE_URL_ARM64: 'https://nmc-docker.local.nemanjamitic.com'
PLAUSIBLE_SCRIPT_URL: 'https://plausible.arm1.nemanjamitic.com/js/script.js'

jobs:
build:
name: Build and push docker image
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux/amd64, linux/arm64]

steps:
- name: Checkout
Expand Down Expand Up @@ -58,6 +62,14 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Set environment variables for each architecture
run: |
if [[ "${{ matrix.platform }}" == "linux/amd64" ]]; then
echo "SITE_URL=${{ env.SITE_URL_AMD64 }}" >> $GITHUB_ENV
elif [[ "${{ matrix.platform }}" == "linux/arm64" ]]; then
echo "SITE_URL=${{ env.SITE_URL_ARM64 }}" >> $GITHUB_ENV
fi
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
Expand Down
6 changes: 3 additions & 3 deletions docs/working-notes/todo3.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,13 +503,13 @@ https://github.com/sindresorhus/github-markdown-css

table of contents id links
a href open in new tab
fix links page links color for history back view transition
fix links page links color for history back view transition

refactor theme script, browserDefaultMode, appDefaultMode, storedMode
change meta theme bg color with js, astro-paper

replace import config with import.meta.env.VAR
ask about app start handler for log env vars
ask about app start handler for log env vars

fix image sizes for gallery and other
update bg color meta tag
Expand All @@ -524,7 +524,7 @@ fix image sizes for gallery and other

-----
gallery scroll pagination, blur loading
odvojen ARG_SITE_URL za x86 i arm
odvojen ARG_SITE_URL za x86 i arm
folder name for slug and index.mdx and images
sentry

Expand Down

0 comments on commit 715a95a

Please sign in to comment.