Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for release of the institutional website #94

Merged
merged 13 commits into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .deployment-envs/.env.production
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NEXT_PUBLIC_ACCOUNTING_BASE_URL=https://www.openbraininstitute.org/api/accounting
NEXT_PUBLIC_NEXUS_URL=https://openbluebrain.com/api/nexus/v1
NEXT_PUBLIC_BLUE_NAAS_URL=https://www.openbraininstitute.org/api/bluenaas
NEXT_PUBLIC_CELL_SVC_BASE_URL=https://www.openbraininstitute.org/api/circuit
Expand Down
1 change: 1 addition & 0 deletions .deployment-envs/.env.staging
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NEXT_PUBLIC_ACCOUNTING_BASE_URL=https://staging.openbraininstitute.org/api/accounting
NEXT_PUBLIC_NEXUS_URL=https://staging.openbraininstitute.org/api/nexus/v1
NEXT_PUBLIC_BLUE_NAAS_URL=https://staging.openbraininstitute.org/api/bluenaas
NEXT_PUBLIC_CELL_SVC_BASE_URL=https://staging.openbraininstitute.org/api/circuit
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/publish-production-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ jobs:
ENVIRONMENT: staging
IMAGE_NAME: ${{ vars.PUBLICECR_URI }}
steps:
- name: Fail if branch is not main
if: github.event_name == 'workflow_dispatch' && github.ref != 'refs/heads/main'
run: |
echo "This workflow should not be triggered with workflow_dispatch on a branch other than main"
exit 1

- name: Checkout repository
uses: actions/checkout@v4
with:
Expand Down
33 changes: 30 additions & 3 deletions .github/workflows/publish-staging-image.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
name: Publish STAGING image
name: Deploy to STAGING

permissions:
id-token: write # Required for OIDC authentication
contents: read # Standard permission for GitHub Actions

on:
push:
branches:
- develop
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
publish-image:
deploy-staging:
runs-on: ubuntu-latest
env:
ENVIRONMENT: staging
Expand All @@ -23,7 +31,7 @@ jobs:
aws-secret-access-key: ${{ secrets.PUBLICECR_UPLOAD_SECRET_ACCESS_KEY }}
aws-region: ${{ vars.PUBLICECR_REGION }}

- name: Authenticate with AWS Public ECR
- name: Authenticate with AWS ECR
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public
Expand All @@ -35,3 +43,22 @@ jobs:
- name: Publish To AWS ECR
run: |
docker push ${{ vars.PUBLICECR_URI }}:staging

- name: Authenticate with AWS ECS
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ vars.AWS_STAGING_ECS_REDEPLOY_ROLE_ARN }}
aws-region: ${{ vars.AWS_STAGING_REGION }}

- name: Trigger new deployment
run: |
aws ecs update-service \
--cluster ${{ vars.AWS_STAGING_ECS_CLUSTER }} \
--service ${{ vars.AWS_STAGING_ECS_SERVICE }} \
--force-new-deployment

- name: Wait until the service is stable
run: |
aws ecs wait services-stable \
--cluster ${{ vars.AWS_STAGING_ECS_CLUSTER }} \
--service ${{ vars.AWS_STAGING_ECS_SERVICE }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -205,3 +205,4 @@ certificates
notes.md

.VSCodeCounter
*~
Binary file removed public/images/about/BBOP_image_origin.png
Binary file not shown.
Binary file removed public/images/about/bbop_3d_rat_brain_image_01.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed public/images/about/hippocampus_background.jpg
Binary file not shown.
Binary file removed public/images/about/icon_downloadable_document.png
Binary file not shown.
5 changes: 0 additions & 5 deletions public/images/about/icon_downloadable_document.svg

This file was deleted.

Binary file removed public/images/about/long_foot_image.png
Binary file not shown.
Binary file not shown.
Binary file removed public/images/about/placeholder_img-01.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed public/images/cell-composition-placeholder.png
Binary file not shown.
Binary file removed public/images/connectome-definition-placeholder.png
Binary file not shown.
Diff not rendered.
Binary file removed public/images/explore/explore_home_bgImg-02.jpg
Diff not rendered.
Binary file removed public/images/explore/explore_home_bgImg-03.jpg
Diff not rendered.
Binary file removed public/images/explore/explore_home_bgImg-04.jpg
Diff not rendered.
Binary file removed public/images/explore/explore_home_bgImg-05.jpg
Diff not rendered.
Binary file removed public/images/explore/explore_home_bgImg-06.jpg
Diff not rendered.
11 changes: 0 additions & 11 deletions public/images/explore/interactive_exploration_icon.svg
Diff not rendered.
Binary file removed public/images/home/build.webp
Binary file not shown.
Binary file removed public/images/home/explore.webp
Binary file not shown.
Binary file removed public/images/home/home_background_block-1.webp
Binary file not shown.
Binary file removed public/images/home/home_background_block-2.webp
Binary file not shown.
Binary file removed public/images/home/simulate.webp
Binary file not shown.
Diff not rendered.
Binary file removed public/images/logo.png
Diff not rendered.
Binary file removed public/images/logo/obi.png
Diff not rendered.
Binary file removed public/images/obp_fullbrain.png
Diff not rendered.
Binary file removed public/images/obp_home_background.webp
Binary file not shown.
Binary file removed public/images/simulate-placeholder.png
Diff not rendered.
Binary file removed public/images/topological-neuron-synthesis.png
Diff not rendered.
Binary file removed public/images/virtual-lab/simulate/brain-regions.png
Diff not rendered.
Diff not rendered.
Binary file removed public/images/virtual-lab/simulate/ion-channel.png
Diff not rendered.
Binary file removed public/images/virtual-lab/simulate/microcircuit.png
Diff not rendered.
Diff not rendered.
Binary file removed public/images/virtual-lab/simulate/paired-neuron.png
Diff not rendered.
Binary file removed public/images/virtual-lab/simulate/single-neuron.png
Diff not rendered.
Binary file removed public/images/virtual-lab/simulate/synaptome.png
Diff not rendered.
Binary file removed public/images/virtual-lab/simulate/whole-brain.png
Diff not rendered.
50 changes: 0 additions & 50 deletions public/mock-data/releases-details.json

This file was deleted.

102 changes: 0 additions & 102 deletions public/mock-data/releases.json

This file was deleted.

Loading