From 90d7fc74879cc46be2d4148456af6afefaea77a8 Mon Sep 17 00:00:00 2001 From: TechQuery Date: Thu, 6 Aug 2026 09:35:40 +0800 Subject: [PATCH 1/2] [add] GitHub action for NorthFlank deployment based on Docker --- .github/workflows/deploy-Docker.yml | 57 +++++++++++++++++++++++++++++ pages/NGO/index.tsx | 5 ++- 2 files changed, 60 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/deploy-Docker.yml diff --git a/.github/workflows/deploy-Docker.yml b/.github/workflows/deploy-Docker.yml new file mode 100644 index 0000000..2ae3ba3 --- /dev/null +++ b/.github/workflows/deploy-Docker.yml @@ -0,0 +1,57 @@ +# reference: +# 1. https://github.com/docker/build-push-action/blob/master/docs/advanced/push-multi-registries.md +# 2. https://github.com/docker/build-push-action/blob/master/docs/advanced/share-image-jobs.md +# 3. https://northflank.com/docs/v1/application/infrastructure-as-code/use-github-actions-with-northflank +# 4. https://github.com/northflank/deploy-to-northflank/issues/1#issuecomment-2629319799 + +name: Deploy Docker to Production environment +on: + push: + tags: + - v* +jobs: + deploy_docker_image: + name: Deploy Docker image + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + steps: + - uses: actions/checkout@v7 + + - name: Inject Environment variables + run: | + cat > .env.local < { +export const getStaticProps = skipBuilding(async () => { const organizationStore = new OrganizationModel(); const [startYear, endYear] = await organizationStore.getYearRange(); return { props: { startYear, endYear } }; -}; +}); const OrganizationHomePage: FC> = observer(props => { const { t } = useContext(I18nContext); From d2445c09201cdfc1d3fc05d460600ca898835505 Mon Sep 17 00:00:00 2001 From: South Drifter Date: Thu, 6 Aug 2026 09:48:39 +0800 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: South Drifter --- .github/workflows/deploy-Docker.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-Docker.yml b/.github/workflows/deploy-Docker.yml index 2ae3ba3..0aa2004 100644 --- a/.github/workflows/deploy-Docker.yml +++ b/.github/workflows/deploy-Docker.yml @@ -24,7 +24,6 @@ jobs: cat > .env.local <