Skip to content

Commit 523c471

Browse files
authored
Merge pull request #22 from TaskarCenterAtUW/stage
Merging changes to get stage working again back to dev
2 parents fc8e0a1 + c407e21 commit 523c471

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
name: Build, Push, Deploy
2222
environment: ${{ github.ref_name }}
23-
timeout-minutes: 20
23+
timeout-minutes: 30
2424
steps:
2525
- uses: actions/checkout@v2
2626
with:
@@ -55,9 +55,12 @@ jobs:
5555
docker compose -f docker-compose.build.yml --env-file tdei_uw.env push
5656
env:
5757
ENV: ${{ vars.ENV }}
58-
WS_DOCKER_REGISTRY: ${{ vars.WS_DOCKER_REGISTRY }}
5958
CODE_VERSION: ${{ github.sha }}
60-
59+
60+
# hosts
61+
WS_DOCKER_REGISTRY: ${{ vars.WS_DOCKER_REGISTRY }}
62+
WS_POSM_DB_HOST: ${{ vars.WS_POSM_DB_HOST }}
63+
6164
# passwords
6265
WS_API_DB_PASS: ${{ secrets.WS_API_DB_PASS }}
6366
WS_MAPBOX_ACCESS_TOKEN: ${{ secrets.WS_MAPBOX_ACCESS_TOKEN }}
@@ -70,15 +73,18 @@ jobs:
7073
- name: Deploy
7174
env:
7275
ENV: ${{ vars.ENV }}
73-
WS_DOCKER_REGISTRY: ${{ vars.WS_DOCKER_REGISTRY }}
7476
CODE_VERSION: ${{ github.sha }}
7577

7678
# machine to deploy to
7779
AZURE_DOCKER_HOST_IP: ${{ vars.AZURE_DOCKER_HOST_IP }}
7880

7981
# tag to deploy
8082
WS_DOCKER_TAG: ${{ github.sha }}
81-
83+
84+
# hosts
85+
WS_DOCKER_REGISTRY: ${{ vars.WS_DOCKER_REGISTRY }}
86+
WS_POSM_DB_HOST: ${{ vars.WS_POSM_DB_HOST }}
87+
8288
# passwords
8389
WS_API_DB_PASS: ${{ secrets.WS_API_DB_PASS }}
8490
WS_MAPBOX_ACCESS_TOKEN: ${{ secrets.WS_MAPBOX_ACCESS_TOKEN }}
@@ -115,4 +121,4 @@ jobs:
115121
116122
echo Deploy list
117123
docker ps
118-
124+

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
### Branch Strategy
44

55
* **main**: day to day work goes here.
6-
* **dev**: current code of the dev environment. No commits allowed directly; you'll need to open a PR from main. Committing/pushing here causes a deployment to the dev infrastructure.
6+
* **dev**: current code of the dev environment. No commits allowed directly; you'll need to open a PR from main (or your feature branch). Committing/pushing here causes a deployment to the dev infrastructure.
7+
* **stage**: current code of the stage environment. No commits allowed directly; you'll need to open a PR from dev. Committing/pushing here causes a deployment to the stage infrastructure.
8+
* **prod**: current code of the prod environment. No commits allowed directly; you'll need to open a PR from stage. Committing/pushing here causes a deployment to the prod infrastructure.
79

810
### GH Actions
911

tdei_uw.env

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ WS_PLATFORM_PRIVACY_POLICY=https://sidewalks.washington.edu/privacy
1818
# Web
1919
###############################################################################
2020

21-
WS_TDEI_FRONTEND_URL=https://tdei-usermanagement-web-${ENV}.azurewebsites.net/
22-
WS_TDEI_BACKEND_URL=https://tdei-usermanagement-be-${ENV}.azurewebsites.net/api/v1/
23-
WS_TDEI_API_URL=https://tdei-api-${ENV}.azurewebsites.net/api/v1/
24-
WS_TDEI_OIDC_URL=https://tdei-keycloak.azurewebsites.net/
21+
WS_TDEI_FRONTEND_URL=https://portal-${ENV}.tdei.us/
22+
WS_TDEI_BACKEND_URL=https://portal-api-${ENV}.tdei.us/api/v1/
23+
WS_TDEI_API_URL=https://api-${ENV}.tdei.us/api/v1/
24+
WS_TDEI_OIDC_URL=https://account-{$ENV}.tdei.us/
2525
WS_TDEI_OIDC_REALM=tdei
2626

2727
WS_FRONTEND_HOST=workspaces-${ENV}.sidewalks.washington.edu
@@ -54,13 +54,13 @@ WS_API_DB_USER=workspaces
5454
WS_API_DB_PASS=${WS_API_DB_PASS}
5555
WS_API_DB_NAME=workspaces
5656

57-
WS_OSM_DB_HOST=opensidewalks-${ENV}.postgres.database.azure.com
57+
WS_OSM_DB_HOST=${WS_POSM_DB_HOST}
5858
WS_OSM_DB_PORT=5432
5959
WS_OSM_DB_USER=workspaces-osm-${ENV}
6060
WS_OSM_DB_PASS=${WS_OSM_DB_PASS}
6161
WS_OSM_DB_NAME=workspaces-osm-${ENV}
6262

63-
WS_TASKS_DB_HOST=opensidewalks-${ENV}.postgres.database.azure.com
63+
WS_TASKS_DB_HOST=${WS_POSM_DB_HOST}
6464
WS_TASKS_DB_PORT=5432
6565
WS_TASKS_DB_USER=workspaces-tasks-${ENV}
6666
WS_TASKS_DB_PASS=${WS_TASKS_DB_PASS}

0 commit comments

Comments
 (0)