Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
e47b5de
Added info about registration pages numeration
nikkxll Feb 23, 2024
8694d6e
Added info about registration pages numeration
nikkxll Feb 24, 2024
3dfa4c9
Added ID to global navbar to target it from other components
wickathou Feb 27, 2024
0cdf406
Modified sectionsInfo to be DRY on register/index
wickathou Feb 27, 2024
70dd0b0
Merge pull request #769 from nikkxll/STAG
wickathou Feb 27, 2024
0c77123
Merge pull request #771 from wickathou/bugfix/registration-responsive…
wickathou Feb 27, 2024
0040df1
Set up CI with Azure Pipelines for Asia server
wickathou Feb 27, 2024
85aa54f
Set up CI with Azure Pipelines for Africa
wickathou Feb 27, 2024
8756130
Rename azure-pipelines-1.yml to azure-pipelines-africa.yml
wickathou Feb 27, 2024
a18570e
Rename azure-pipelines-production.yml to azure-pipelines-eu.yml
wickathou Feb 27, 2024
0676faa
Added new type of event, hybrid
wickathou Mar 14, 2024
5ba424e
Added verification to registration gavel login controller to validate…
wickathou Mar 14, 2024
0d8418e
Delete azure-pipelines-production.yml
wickathou Mar 14, 2024
cb2f849
Merge pull request #23 from wickathou/update/multiple-updates
wickathou Mar 14, 2024
1216771
Added styleModifier function to ProjectGridItem to render projects ap…
wickathou Mar 14, 2024
025c6a4
Merge pull request #24 from wickathou/update/multiple-updates
wickathou Mar 14, 2024
34c581a
Merge pull request #779 from wickathou/pre-STAG-14-3-24
wickathou Mar 14, 2024
7e0373c
Added projectId and registrationId properties to exports as organizer
wickathou Mar 14, 2024
591a64d
Merge pull request #780 from wickathou/hotfix/project-participant-exp…
wickathou Mar 14, 2024
c12cefe
Added snackbar error notice to partner review page when fetching proj…
wickathou Mar 18, 2024
cb8b01d
Added optional chaining to partner reviewing page
wickathou Mar 18, 2024
77af2f1
Merge pull request #785 from wickathou/hotfix/project-participant-exp…
wickathou Mar 18, 2024
a5aa099
Modified project controller to return projects for multiple challenge…
wickathou Mar 19, 2024
5666786
Merge pull request #786 from wickathou/fix/partner-review-and-announc…
wickathou Mar 19, 2024
fe49acc
Added votingResults prop to render voting results on winner page for …
wickathou Mar 19, 2024
6b9cc35
Merge pull request #787 from wickathou/hotfix/winner-page-fix
wickathou Mar 19, 2024
2667a1d
Removed unnused packages from RadioScore
wickathou Mar 20, 2024
cddb18a
Merge pull request #788 from wickathou/hotfix/partner-review-scores-n…
wickathou Mar 21, 2024
9457f34
Updated Africa, Asia and UE pipelines to restart pm2 properly
wickathou Mar 22, 2024
4101b96
Merge pull request #790 from wickathou/devops/update-to-pipelines
wickathou Mar 22, 2024
4901199
Modified challenge validations
wickathou Mar 22, 2024
e87023c
Merge pull request #791 from wickathou/hotfix/adjusting-challenge-val…
wickathou Mar 22, 2024
f26a4a0
Fixed typo on challenge page validation
wickathou Mar 22, 2024
9036c5b
Merge pull request #792 from wickathou/hotfix/adjusting-challenge-val…
wickathou Mar 22, 2024
40a8117
Merge pull request #763 from hackjunction/dependabot/STAG
wickathou Apr 10, 2024
a1c2014
Bump loader-utils from 1.4.0 to 1.4.2
dependabot[bot] Apr 10, 2024
b3fbaa8
Merge pull request #578 from hackjunction/dependabot/npm_and_yarn/loa…
wickathou Apr 10, 2024
ba21b0c
Bump loader-utils and react-scripts in /frontend
dependabot[bot] Apr 10, 2024
a9f3907
Bump qs from 6.5.2 to 6.5.3
dependabot[bot] Apr 10, 2024
74f226d
Merge pull request #579 from hackjunction/dependabot/npm_and_yarn/fro…
wickathou Apr 10, 2024
d9ee9db
Merge pull request #582 from hackjunction/dependabot/npm_and_yarn/qs-…
wickathou Apr 10, 2024
a7b54a2
Bump json5 from 1.0.1 to 1.0.2
dependabot[bot] Apr 10, 2024
2d70d47
Bump cookiejar from 2.1.2 to 2.1.4
dependabot[bot] Apr 10, 2024
c6558a0
Bump jose from 4.14.4 to 4.15.5
dependabot[bot] Apr 10, 2024
d88fda1
Bump follow-redirects from 1.14.1 to 1.15.6
dependabot[bot] Apr 10, 2024
021b9e8
Bump follow-redirects from 1.15.2 to 1.15.6 in /frontend
dependabot[bot] Apr 10, 2024
cbc5e4f
Bump follow-redirects from 1.15.2 to 1.15.6 in /backend
dependabot[bot] Apr 10, 2024
badc0ac
Merge pull request #589 from hackjunction/dependabot/npm_and_yarn/jso…
wickathou Apr 10, 2024
6c07068
Merge pull request #593 from hackjunction/dependabot/npm_and_yarn/coo…
wickathou Apr 10, 2024
23d0a67
Merge pull request #777 from hackjunction/dependabot/npm_and_yarn/jos…
wickathou Apr 10, 2024
51e704a
Merge pull request #781 from hackjunction/dependabot/npm_and_yarn/fol…
wickathou Apr 10, 2024
f3338da
Merge pull request #782 from hackjunction/dependabot/npm_and_yarn/fro…
wickathou Apr 10, 2024
faef506
Merge pull request #783 from hackjunction/dependabot/npm_and_yarn/bac…
wickathou Apr 10, 2024
8f53557
Bump shell-quote from 1.7.2 to 1.8.1
dependabot[bot] Apr 11, 2024
503140c
Bump eslint-plugin-import from 2.20.2 to 2.29.1 in /shared
dependabot[bot] Apr 11, 2024
b985f75
Bump graphql from 15.0.0 to 16.8.1 in /shared
dependabot[bot] Apr 11, 2024
7914757
Bump eslint-plugin-prettier from 3.1.3 to 3.4.1 in /shared
dependabot[bot] Apr 11, 2024
9dad6f2
Bump d3-color and recharts in /frontend
dependabot[bot] Apr 11, 2024
42c22db
Bump express from 4.18.2 to 4.19.2 in /backend
dependabot[bot] Apr 11, 2024
f474f7f
Merge pull request #794 from hackjunction/dependabot/npm_and_yarn/bac…
wickathou Apr 11, 2024
81b0455
Merge pull request #797 from hackjunction/dependabot/npm_and_yarn/she…
wickathou Apr 11, 2024
6af5d80
Merge pull request #798 from hackjunction/dependabot/npm_and_yarn/fro…
wickathou Apr 11, 2024
3269391
Merge pull request #799 from hackjunction/dependabot/npm_and_yarn/sha…
wickathou Apr 11, 2024
0870020
Merge pull request #800 from hackjunction/dependabot/npm_and_yarn/sha…
wickathou Apr 11, 2024
6c35105
Merge pull request #801 from hackjunction/dependabot/npm_and_yarn/sha…
wickathou Apr 11, 2024
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
134 changes: 134 additions & 0 deletions azure-pipelines-africa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
#Works
trigger:
- none

pool:
vmImage: ubuntu-latest

stages:
- stage: Build_africa
displayName: Build stage africa
jobs:
- job: Build_africa
steps:
- task: DownloadSecureFile@1
displayName: 'download AFRICA backendend'
inputs:
secureFile: 'BACKEND_ENV_FILE_AFRICA' # string. Required. Secure File.

- task: CopyFiles@2
displayName: 'copy africa backendend'
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: BACKEND_ENV_FILE_AFRICA
TargetFolder: './backend'

- script: mv ./backend/BACKEND_ENV_FILE_AFRICA ./backend/.env
displayName: 'rename africa .env'
- task: DownloadSecureFile@1
displayName: 'download africa frontend'
inputs:
secureFile: 'FRONTEND_ENV_FILE_AFRICA' # string. Required. Secure File.

- task: CopyFiles@2
displayName: 'copy africa frontend'
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: FRONTEND_ENV_FILE_AFRICA
TargetFolder: './frontend'

- script: mv ./frontend/FRONTEND_ENV_FILE_AFRICA ./frontend/.env
displayName: 'rename africa .env'

- script: ls -a ./frontend
displayName: 'ls'

- script: ls -Rn
displayName: 'ls'

- task: NodeTool@0
inputs:
versionSpec: '12.20.1'
displayName: 'Install Node.js'

- task: Bash@3
inputs:
targetType: 'inline'
script: |
node -v
npm -v
npm install
npm run build

- task: ArchiveFiles@2
displayName: 'Archive files'
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
includeRootFolder: false
archiveType: zip
archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
replaceExistingArchive: true
- upload: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
artifact: drop_africa

- deployment: VMDeploy_AFRICA
dependsOn: Build_africa
displayName: DEPLOY AFRICA
environment:
name: PROD
resourceType: VirtualMachine
tags: africa
strategy:
runOnce:
preDeploy:
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: drop_africa
targetPath: '$(Pipeline.Workspace)/drop_africa'

- script: echo initialize, cleanup, backup, install certs

deploy:
steps:
- task: Bash@3
inputs:
targetType: 'inline'
script: |
# Modify deployment script based on the app type
echo "Starting deployment script run"

- task: ExtractFiles@1
inputs:
archiveFilePatterns: '$(Pipeline.Workspace)/drop_africa/$(Build.BuildId).zip'
destinationFolder: '$(Pipeline.Workspace)/japp'
cleanDestinationFolder: true
overwriteExistingFiles: true

- task: DeleteFiles@1
inputs:
SourceFolder: '$(Pipeline.Workspace)/drop_africa'
Contents: '$(Build.BuildId).zip'

- task: Bash@3
inputs:
targetType: 'inline'
script: |
cd /home/azureuser/azagent/_work/3/japp
pm2 restart index
sudo systemctl restart nginx

routeTraffic:
steps:
- script: echo routing traffic
postRouteTraffic:
steps:
- script: echo health check post-route traffic
on:
failure:
steps:
- script: echo Restore from backup! This is on failure
success:
steps:
- script: echo Notify! This is on success
134 changes: 134 additions & 0 deletions azure-pipelines-asia.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
# Works
trigger:
- none

pool:
vmImage: ubuntu-latest

stages:
- stage: Build_asia
displayName: Build stage asia
jobs:
- job: Build_asia
steps:
- task: DownloadSecureFile@1
displayName: 'download ASIA backendend'
inputs:
secureFile: 'BACKEND_ENV_FILE_ASIA' # string. Required. Secure File.

- task: CopyFiles@2
displayName: 'copy asia backendend'
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: BACKEND_ENV_FILE_ASIA
TargetFolder: './backend'

- script: mv ./backend/BACKEND_ENV_FILE_ASIA ./backend/.env
displayName: 'rename asia .env'
- task: DownloadSecureFile@1
displayName: 'download asia frontend'
inputs:
secureFile: 'FRONTEND_ENV_FILE_ASIA' # string. Required. Secure File.

- task: CopyFiles@2
displayName: 'copy asia frontend'
inputs:
SourceFolder: '$(Agent.TempDirectory)'
Contents: FRONTEND_ENV_FILE_ASIA
TargetFolder: './frontend'

- script: mv ./frontend/FRONTEND_ENV_FILE_ASIA ./frontend/.env
displayName: 'rename asia .env'

- script: ls -a ./frontend
displayName: 'ls'

- script: ls -Rn
displayName: 'ls'

- task: NodeTool@0
inputs:
versionSpec: '12.20.1'
displayName: 'Install Node.js'

- task: Bash@3
inputs:
targetType: 'inline'
script: |
node -v
npm -v
npm install
npm run build

- task: ArchiveFiles@2
displayName: 'Archive files'
inputs:
rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
includeRootFolder: false
archiveType: zip
archiveFile: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
replaceExistingArchive: true
- upload: $(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip
artifact: drop_asia

- deployment: VMDeploy_ASIA
dependsOn: Build_asia
displayName: DEPLOY ASIA
environment:
name: PROD
resourceType: VirtualMachine
tags: asia
strategy:
runOnce:
preDeploy:
steps:
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'current'
artifactName: drop_asia
targetPath: '$(Pipeline.Workspace)/drop'

- script: echo initialize, cleanup, backup, install certs

deploy:
steps:
- task: Bash@3
inputs:
targetType: 'inline'
script: |
# Modify deployment script based on the app type
echo "Starting deployment script run"

- task: ExtractFiles@1
inputs:
archiveFilePatterns: '$(Pipeline.Workspace)/drop_asia/$(Build.BuildId).zip'
destinationFolder: '$(Pipeline.Workspace)/japp'
cleanDestinationFolder: true
overwriteExistingFiles: true

- task: DeleteFiles@1
inputs:
SourceFolder: '$(Pipeline.Workspace)/drop_asia'
Contents: '$(Build.BuildId).zip'

- task: Bash@3
inputs:
targetType: 'inline'
script: |
cd /home/azureuser/azagent/_work/3/japp
pm2 restart index
sudo systemctl restart nginx

routeTraffic:
steps:
- script: echo routing traffic
postRouteTraffic:
steps:
- script: echo health check post-route traffic
on:
failure:
steps:
- script: echo Restore from backup! This is on failure
success:
steps:
- script: echo Notify! This is on success
Loading