Skip to content

Update openshift.yml #122

Update openshift.yml

Update openshift.yml #122

Workflow file for this run

name: Deploy
on:
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows
release:
types: [published]
push:
branches:
- main
jobs:
deploy-server:
uses: ./.github/workflows/openshift.yml
secrets: inherit
with:
environment: ${{ github.event_name == 'release' && 'production' || 'staging' }}
app: ${{ github.event_name == 'release' && 'bhpa-backend' || 'bhpa-backend-staging' }}
image_name: 'bhpa-backend'
context: backend
port: 3000
deploy-website:
uses: ./.github/workflows/openshift.yml
secrets: inherit
with:
environment: ${{ github.event_name == 'release' && 'production' || 'staging' }}
app: ${{ github.event_name == 'release' && 'bhpa-frontend' || 'bhpa-frontend-staging' }}
image_name: bhpa-frontend
context: frontend/front
port: 8080
build-args: |
REACT_APP_GIT_SHA=${{ github.sha }}
REACT_APP_GIT_REF=${{ github.ref_name }}
REACT_APP_RECAPTCHA_KEY=6LdHAxYmAAAAAHGN0eNzJhGpCrxm7FisXyZoy8cr
REACT_APP_PUBLIC_SURVEY_ENABLED='false'
REACT_APP_API_URL=${{ github.event_name == 'release' && 'https://api.bostonhpa.org' || 'https://api.staging.bostonhpa.org' }}