From 717d4d1fd972b97c14272a4b70313b4eefd57ef4 Mon Sep 17 00:00:00 2001 From: Karun Agarwal <113603846+singhalkarun@users.noreply.github.com> Date: Thu, 12 Sep 2024 23:55:23 +0530 Subject: [PATCH 1/4] add workflow to build and push image --- .github/workflows/build-and-push.yaml | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/build-and-push.yaml diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml new file mode 100644 index 000000000..1e5823956 --- /dev/null +++ b/.github/workflows/build-and-push.yaml @@ -0,0 +1,57 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + - dev + release: + types: [published] +env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + +jobs: + build-and-push: + runs-on: ubuntu-latest + # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. + permissions: + contents: read + packages: write + steps: + + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + # minimal + type=pep440,pattern={{version}},value=${{ github.ref_name }},enable=${{ github.event_name == 'release' }} + # branch event + type=ref,event=branch + type=raw,value=latest,enable=${{ github.event_name == 'release' }} + + - name: Build and Push Docker image + uses: docker/build-push-action@v4 + with: + # build-args: + context: . + push: true + cache-from: type=gha + cache-to: type=gha,mode=max + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} From 3f8533946d1a2e01ae023dd0943a4707bb757fb5 Mon Sep 17 00:00:00 2001 From: Shreyash Date: Sun, 23 Mar 2025 17:12:04 +0530 Subject: [PATCH 2/4] 1. Added 2025 component for year 2025 Issues. 2. Made API endpoints Year Compatible 3. Made Index.js Reusable for coming years with minimum changes. --- docusaurus.config.js | 27 ++++- src/components/C4gt2025Description.js | 65 +++++++++++ src/components/Sidebar.js | 39 ++++--- src/pages/docs/2024/index.js | 42 ++++---- src/pages/docs/2025/index.css | 113 +++++++++++++++++++ src/pages/docs/2025/index.js | 149 ++++++++++++++++++++++++++ 6 files changed, 401 insertions(+), 34 deletions(-) create mode 100644 src/components/C4gt2025Description.js create mode 100644 src/pages/docs/2025/index.css create mode 100644 src/pages/docs/2025/index.js diff --git a/docusaurus.config.js b/docusaurus.config.js index 73c7e54fc..1793bf9bb 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -368,7 +368,32 @@ module.exports = { to: "/docs/2024?id=Zenysis%20Technologies", }, ] - } + }, + { + label: "2025", + position: "left", + to: "/docs/2025/", + items: [ + // Add your 2025 organizations here + { + label: "2025 Org 1", + to: "/docs/2025?id=2025Org1", + }, + { + label: "2025 Org 2", + to: "/docs/2025?id=2025Org2", + }, + { + label: "A2I Bangladesh", + to: "/docs/2024?id=A2I%20Bangladesh", + }, + { + label: "ABDM Enablers", + to: "/docs/2024?id=ABDM%20Enablers", + }, + // ... more 2025 organizations ... + ], + }, ], }, footer: { diff --git a/src/components/C4gt2025Description.js b/src/components/C4gt2025Description.js new file mode 100644 index 000000000..90a9e9985 --- /dev/null +++ b/src/components/C4gt2025Description.js @@ -0,0 +1,65 @@ +// src/components/C4GT2025Description.js + +import React from "react"; + +function C4GT2025Description() { + return ( +
+
+
+
+
+ +
+
+

C4GT'25

+
+

+ C4GT Mentoring Program 2025 is shaping up to be an exciting summer coding program, building upon the success of previous years to foster a strong community focused on developing and contributing to global digital public goods. +

+
    +
  • + An opportunity for college students and working + professionals in India to dive into the GovTech space in 2025. +
  • +
  • Organized annually over 2 months (July-August)
  • +
  • + A new set of diverse and challenging GovTech problem + statements will be presented for participants to tackle in 2025. +
  • +
  • + Shortlisted contributors will receive mentorship from + leading experts in the GovTech ecosystem. +
  • +
+

We're thrilled to have you join us in 2025! 🚀

+
+
+
+
+
+
+ ); +} + +export default C4GT2025Description; \ No newline at end of file diff --git a/src/components/Sidebar.js b/src/components/Sidebar.js index 4aef1c984..62273f5ef 100644 --- a/src/components/Sidebar.js +++ b/src/components/Sidebar.js @@ -1,3 +1,5 @@ +// src/components/Sidebar.js + import React from "react"; import { useHistory } from "react-router-dom"; @@ -8,7 +10,8 @@ function Sidebar({ setCurrentOrg, currentIssue, setCurrentIssue, - setCurrentTab + setCurrentTab, + year, // Add year prop }) { const history = useHistory(); return ( @@ -17,16 +20,28 @@ function Sidebar({