-
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.
Updated HELM charts to release to dev Updated github actions so they are now available for all the new
- Loading branch information
1 parent
38f5f79
commit 13ccfcb
Showing
33 changed files
with
277 additions
and
68 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,73 @@ | ||
name: Deploy main to prod | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
|
||
build-static: | ||
runs-on: ubuntu-latest | ||
name: Build & Deploy Docker Static images | ||
environment: prod | ||
|
||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: build static | ||
uses: redhat-actions/buildah-build@v2 | ||
with: | ||
context: . | ||
layers: true | ||
image: prod-static | ||
tags: latest ${{ github.sha }} | ||
labels: | | ||
app=prod-drivebc | ||
containerfiles: ./compose/frontend/StaticBuild | ||
build-args: | | ||
API_HOST=${{ vars.API_HOST }} | ||
BASE_MAP=${{ vars.BASE_MAP }} | ||
MAP_STYLE=${{ vars.MAP_STYLE }} | ||
HIGHWAY_LAYER=${{ vars.HIGHWAY_LAYER }} | ||
OPEN511_LAYER=${{ vars.OPEN511_LAYER }} | ||
REPLAY_THE_DAY=${{ vars.REPLAY_THE_DAY }} | ||
ROUTE_PLANNER=${{ vars.ROUTE_PLANNER }} | ||
ROUTE_PLANNER_KEY=${{ vars.ROUTE_PLANNER_KEY }} | ||
GEOCODER_HOST=${{ vars.GEOCODER_HOST }} | ||
GEOCODER_API_AUTH_KEY=${{ vars.GEOCODER_API_AUTH_KEY }} | ||
DEBUG_BUILD=false | ||
- name: push to registry | ||
uses: redhat-actions/push-to-registry@v2.7 | ||
with: | ||
image: prod-static | ||
registry: ${{ secrets.REGISTRY }} | ||
username: ${{ secrets.BUILDER_USERNAME }} | ||
password: ${{ secrets.BUILDER_TOKEN }} | ||
|
||
build-backend: | ||
runs-on: ubuntu-latest | ||
name: Build & Deploy Docker backend images | ||
environment: prod | ||
|
||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: build backend | ||
uses: redhat-actions/buildah-build@v2 | ||
with: | ||
image: prod-django | ||
tags: latest ${{ github.sha }} | ||
labels: | | ||
app=prod-drivebc | ||
containerfiles: ./compose/backend/Dockerfile | ||
build-args: | ||
DEBUG_BUILD=false | ||
- name: push to registry | ||
uses: redhat-actions/push-to-registry@v2.7 | ||
with: | ||
image: prod-django | ||
registry: ${{ secrets.REGISTRY }} | ||
username: ${{ secrets.BUILDER_USERNAME }} | ||
password: ${{ secrets.BUILDER_TOKEN }} |
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
name: Deploy to UAT | ||
name: Deploy main to uat | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
|
||
build-static: | ||
|
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
33 changes: 31 additions & 2 deletions
33
infrastructure/_image-caching/templates/caching-route.yaml
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 |
---|---|---|
@@ -1,15 +1,44 @@ | ||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
name: {{ template "app.fullname" . }} | ||
name: {{ template "app.fullname" . }}-webcam | ||
labels: {{ include "app.labels" . | nindent 4 }} | ||
{{ if .Values.route.iprestricted }} | ||
annotations: | ||
haproxy.router.openshift.io/ip_whitelist: {{ .Values.route.ipallowlist }} | ||
{{ end }} | ||
spec: | ||
to: | ||
kind: Service | ||
name: {{ template "app.fullname" . }} | ||
weight: 100 | ||
port: | ||
targetPort: nginx | ||
tls: | ||
termination: edge | ||
host: {{ .Values.route.host }} | ||
path: {{ .Values.route.webcamPath }} | ||
|
||
|
||
--- | ||
|
||
apiVersion: route.openshift.io/v1 | ||
kind: Route | ||
metadata: | ||
name: {{ template "app.fullname" . }}-replaytheday | ||
labels: {{ include "app.labels" . | nindent 4 }} | ||
{{ if .Values.route.iprestricted }} | ||
annotations: | ||
haproxy.router.openshift.io/ip_whitelist: {{ .Values.route.ipallowlist }} | ||
{{ end }} | ||
spec: | ||
to: | ||
kind: Service | ||
name: {{ template "app.fullname" . }} | ||
weight: 100 | ||
port: | ||
targetPort: nginx | ||
tls: | ||
termination: edge | ||
termination: edge | ||
host: {{ .Values.route.host }} | ||
path: {{ .Values.route.replayTheDayPath }} |
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 |
---|---|---|
|
@@ -8,4 +8,4 @@ spec: | |
- name: latest | ||
from: | ||
kind: DockerImage | ||
name: redis | ||
name: redis:7 |
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,4 @@ | ||
fullnameOverride: dev-drivebc #By default it will use the name you assign the helm chart. Since we are running | ||
#this separatly from the main Helm Chart with all dependencies we set this value to match. | ||
|
||
networkPolicyRequired: false #Set to true if you need the allow traffic between pods and internet ingress setup |
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,4 @@ | ||
fullnameOverride: prod-drivebc #By default it will use the name you assign the helm chart. Since we are running | ||
#this separatly from the main Helm Chart with all dependencies we set this value to match. | ||
|
||
networkPolicyRequired: false #Set to true if you need the allow traffic between pods and internet ingress setup. Get's used when doing the init. |
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,4 @@ | ||
fullnameOverride: test-drivebc #By default it will use the name you assign the helm chart. Since we are running | ||
#this separatly from the main Helm Chart with all dependencies we set this value to match. | ||
|
||
networkPolicyRequired: false #Set to true if you need the allow traffic between pods and internet ingress setup |
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,4 @@ | ||
fullnameOverride: uat-drivebc #By default it will use the name you assign the helm chart. Since we are running | ||
#this separatly from the main Helm Chart with all dependencies we set this value to match. | ||
|
||
networkPolicyRequired: false #Set to true if you need the allow traffic between pods and internet ingress setup |
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
Oops, something went wrong.