forked from hotosm/tasking-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'deployment/naxa' into feat/ohsome-api-proxy
- Loading branch information
Showing
17 changed files
with
600 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Build and Deploy Tasking Manager Backend | ||
|
||
on: | ||
push: | ||
branches: | ||
- deployment/naxa | ||
paths: | ||
- "backend/**" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy to Server | ||
runs-on: [ubuntu-latest] | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Recreate Services | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ vars.SERVER_IP }} | ||
username: ${{ vars.SERVER_USERNAME }} | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
command_timeout: 20m | ||
script: | | ||
echo '==In Server==' | ||
echo '==Building Backend==' | ||
cd /home/ubuntu/Projects/tasking-manager | ||
git pull naxa deployment/naxa | ||
docker compose build --no-cache backend | ||
docker compose up -d --force-recreate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: TM NAXA Custom Branch CICD | ||
|
||
on: | ||
push: | ||
tags: | ||
- force-deploy* | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-static-for-branch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js 16 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install dependencies | ||
run: cd frontend && yarn install --network-concurrency 1 | ||
|
||
- name: Generate build | ||
run: cd frontend && GENERATE_SOURCEMAP=false && yarn build | ||
|
||
- name: copy file via ssh password | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ vars.SERVER_IP }} | ||
username: ${{ vars.SERVER_USERNAME }} | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
source: "./frontend/build/" | ||
target: /home/ubuntu/Projects/tasking-manager/frontend/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from 'react'; | ||
import { Link } from 'react-router-dom'; | ||
import { FormattedMessage } from 'react-intl'; | ||
|
||
import messages from './messages'; | ||
import { CustomButton } from '../button'; | ||
|
||
export const LiveViewButton = ({ projectId, className, compact = false }) => ( | ||
<Link to={`/projects/${projectId}/live`} className="pr2"> | ||
{ | ||
<CustomButton className={className}> | ||
{compact ? ( | ||
<FormattedMessage {...messages.live} /> | ||
) : ( | ||
<FormattedMessage {...messages.liveMonitoring} /> | ||
)} | ||
</CustomButton> | ||
} | ||
</Link> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
@import '@hotosm/underpass-ui/dist/index.css'; | ||
|
||
.maplibregl-map { | ||
height: calc(100vh - 6.05rem); | ||
} | ||
|
||
.top { | ||
position: absolute; | ||
top: 0.625rem; | ||
left: 0.625rem; | ||
z-index: 999; | ||
} | ||
|
||
svg.pl2 { | ||
display: inherit; | ||
height: 22px !important; | ||
width: 19px !important; | ||
margin-left: 0px; | ||
} | ||
|
||
.react-select__control { | ||
border-radius: 0.25rem !important; | ||
min-height: 36px !important; | ||
width: 15.8rem; | ||
} | ||
|
||
.react-select__menu { | ||
width: 15.8rem !important; | ||
} | ||
|
||
.title-text { | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 2; | ||
-webkit-box-orient: vertical; | ||
} |
Oops, something went wrong.