Skip to content

Commit 715a95a

Browse files
committed
separate site_url for x68 and arm
1 parent 8da9f6e commit 715a95a

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/default__build-push-docker.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ on:
1313

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

1920
jobs:
2021
build:
2122
name: Build and push docker image
2223
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
platform: [linux/amd64, linux/arm64]
2327

2428
steps:
2529
- name: Checkout
@@ -58,6 +62,14 @@ jobs:
5862
username: ${{ secrets.DOCKER_USERNAME }}
5963
password: ${{ secrets.DOCKER_PASSWORD }}
6064

65+
- name: Set environment variables for each architecture
66+
run: |
67+
if [[ "${{ matrix.platform }}" == "linux/amd64" ]]; then
68+
echo "SITE_URL=${{ env.SITE_URL_AMD64 }}" >> $GITHUB_ENV
69+
elif [[ "${{ matrix.platform }}" == "linux/arm64" ]]; then
70+
echo "SITE_URL=${{ env.SITE_URL_ARM64 }}" >> $GITHUB_ENV
71+
fi
72+
6173
- name: Build and push Docker image
6274
uses: docker/build-push-action@v5
6375
with:

docs/working-notes/todo3.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,13 +503,13 @@ https://github.com/sindresorhus/github-markdown-css
503503

504504
table of contents id links
505505
a href open in new tab
506-
fix links page links color for history back view transition
506+
fix links page links color for history back view transition
507507

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

511511
replace import config with import.meta.env.VAR
512-
ask about app start handler for log env vars
512+
ask about app start handler for log env vars
513513

514514
fix image sizes for gallery and other
515515
update bg color meta tag
@@ -524,7 +524,7 @@ fix image sizes for gallery and other
524524

525525
-----
526526
gallery scroll pagination, blur loading
527-
odvojen ARG_SITE_URL za x86 i arm
527+
odvojen ARG_SITE_URL za x86 i arm
528528
folder name for slug and index.mdx and images
529529
sentry
530530

0 commit comments

Comments
 (0)