Skip to content

Commit 1b479bd

Browse files
committed
Prep for CI/CD
1 parent b236024 commit 1b479bd

File tree

2 files changed

+103
-1
lines changed

2 files changed

+103
-1
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,21 @@ jobs:
1919
with:
2020
submodules: recursive
2121

22+
- name: Login to Docker Hub
23+
uses: docker/login-action@v3
24+
with:
25+
registry: ${{ vars.WS_DOCKER_REGISTRY }}
26+
username: ${{ vars.DOCKERHUB_USERNAME }}
27+
password: ${{ secrets.DOCKERHUB_TOKEN }}
28+
2229
- name: Set commit SHA as code version
2330
run: echo "CODE_VERSION=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
2431

2532
- name: Build the stack
26-
run: docker compose -f docker-compose.build.yml --env-file example.env build --build-arg CODE_VERSION=${CODE_VERSION}
33+
run: docker compose -f docker-compose.build.yml --env-file tdei_uw.env build --build-arg CODE_VERSION=${CODE_VERSION}
34+
35+
- name: Push the stack to ACR
36+
run: docker compose --env-file tdei_uw.env push
2737

38+
2839

tdei_uw.env

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
###############################################################################
2+
# Docker
3+
###############################################################################
4+
5+
#WS_DOCKER_REGISTRY=
6+
WS_DOCKER_TAG=${ENV}
7+
8+
###############################################################################
9+
# PLATFORM
10+
###############################################################################
11+
12+
WS_PLATFORM_NAME=TDEI Workspaces ${ENV}
13+
WS_PLATFORM_NAME_SHORT=Workspaces
14+
WS_PLATFORM_WEBSITE=https://sidewalks.washington.edu/
15+
WS_PLATFORM_ORG_WEBSITE=https://tcat.cs.washington.edu/
16+
WS_PLATFORM_PRIVACY_POLICY=https://sidewalks.washington.edu/privacy
17+
18+
###############################################################################
19+
# Web
20+
###############################################################################
21+
22+
WS_TDEI_FRONTEND_URL=https://tdei-usermanagement-web-${ENV}.azurewebsites.net/
23+
WS_TDEI_BACKEND_URL=https://tdei-usermanagement-be-${ENV}.azurewebsites.net/api/v1/
24+
WS_TDEI_API_URL=https://tdei-api-${ENV}.azurewebsites.net/api/v1/
25+
WS_TDEI_OIDC_URL=https://tdei-keycloak.azurewebsites.net/
26+
WS_TDEI_OIDC_REALM=tdei
27+
28+
WS_FRONTEND_HOST=workspaces-${ENV}.sidewalks.washington.edu
29+
WS_API_HOST=api.workspaces-${ENV}.sidewalks.washington.edu
30+
WS_RAPID_HOST=rapid.workspaces-${ENV}.sidewalks.washington.edu
31+
WS_PATHWAYS_EDITOR_HOST=pathways.workspaces-${ENV}.sidewalks.washington.edu
32+
WS_OSM_HOST=osm.workspaces-${ENV}.sidewalks.washington.edu
33+
WS_TASKS_HOST=tasks.workspaces-${ENV}.sidewalks.washington.edu
34+
35+
WS_FRONTEND_URL=https://${WS_FRONTEND_HOST}/
36+
WS_API_URL=https://${WS_API_HOST}/api/v1/
37+
WS_RAPID_URL=https://${WS_RAPID_HOST}/
38+
WS_PATHWAYS_EDITOR_URL=https://${WS_PATHWAYS_EDITOR_HOST}/
39+
WS_OSM_URL=https://${WS_OSM_HOST}/
40+
WS_TASKS_URL=https://${WS_TASKS_HOST}/
41+
42+
#WS_OSM_SECRET_KEY_BASE=
43+
#WS_TASKS_SECRET_KEY=
44+
#WS_MAPBOX_ACCESS_TOKEN=
45+
46+
###############################################################################
47+
# Databases
48+
###############################################################################
49+
50+
WS_API_DB_HOST=localhost
51+
WS_API_DB_PORT=5432
52+
WS_API_DB_USER=workspaces
53+
#WS_API_DB_PASS=
54+
WS_API_DB_NAME=workspaces
55+
56+
WS_OSM_DB_HOST=opensidewalks-${ENV}.postgres.database.azure.com
57+
WS_OSM_DB_PORT=5432
58+
WS_OSM_DB_USER=workspaces-osm-${ENV}
59+
#WS_OSM_DB_PASS=
60+
WS_OSM_DB_NAME=workspaces-osm-${ENV}
61+
62+
WS_TASKS_DB_HOST=opensidewalks-${ENV}.postgres.database.azure.com
63+
WS_TASKS_DB_PORT=5432
64+
WS_TASKS_DB_USER=workspaces-tasks-${ENV}
65+
#WS_TASKS_DB_PASS=
66+
WS_TASKS_DB_NAME=workspaces-tasks-${ENV}
67+
68+
###############################################################################
69+
# Mail
70+
###############################################################################
71+
72+
WS_MAIL_ACME=[email protected]
73+
WS_MAIL_NAME=${WS_PLATFORM_NAME}
74+
WS_MAIL_FROM=[email protected]
75+
WS_MAIL_CONTACT=[email protected]
76+
WS_MAIL_RETURN_PATH=[email protected]
77+
78+
WS_SMTP_DOMAIN=gmail.com
79+
WS_SMTP_HOST=smtp.gmail.com
80+
WS_SMTP_PORT=587
81+
WS_SMTP_USER=[email protected]
82+
#WS_SMTP_PASS=
83+
84+
###############################################################################
85+
# Limits
86+
###############################################################################
87+
88+
WS_OSM_MAX_CHANGESET_ELEMENTS=100000000 # max features per import or save
89+
WS_OSM_MAX_UPLOAD_BYTES=1000000000 # max size of dataset uploads
90+
WS_OSM_MAX_EXPORT_NODES=100000000 # max number of nodes per requeset
91+
WS_OSM_MAX_EXPORT_AREA=1 # max area per request in square degrees

0 commit comments

Comments
 (0)