Skip to content

Commit

Permalink
Updated frontend to trigger on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
cditcher committed Feb 26, 2025
1 parent 4d7c855 commit 6ee68e3
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-n-deploy-frontend-to-ocp-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }}
OPENSHIFT_TOKEN: ${{ secrets.OPENSHIFT_TOKEN }}
# 🖊️ EDIT to set the kube context's namespace after login. Leave blank to use your user's default namespace.
OPENSHIFT_NAMESPACE: bbe4c3-dev
OPENSHIFT_NAMESPACE: ${{ secrets.UI_NAMESPACE }}-dev

# 🖊️ EDIT to change the image registry settings.
# Registries such as GHCR, Quay.io, and Docker Hub are supported.
Expand Down Expand Up @@ -39,12 +39,16 @@ env:

on:
workflow_dispatch:

push:
branches:
- 'release/**'
paths:
- 'frontend/**'
jobs:
openshift-ci-cd:
name: Build & Deploy Frontend to DEV
# ubuntu-latest can also be used.
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
environment: dev

steps:
Expand Down Expand Up @@ -87,7 +91,9 @@ jobs:
}
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Determine app name
if: env.APP_NAME_FRONTEND == ''
Expand Down Expand Up @@ -133,7 +139,7 @@ jobs:
oc: 4

# https://github.com/redhat-actions/oc-login#readme
- uses: actions/checkout@v2

- name: Build frontend static
id: build-image-frontend-static
run: |
Expand All @@ -147,7 +153,7 @@ jobs:
oc tag ${{ steps.push-image-frontend.outputs.registry-path }} ${{ env.APP_NAME }}-frontend:${{ env.TAG }}
# https://github.com/redhat-actions/oc-login#readme
- uses: actions/checkout@v2

- name: Deploy
run: |
set -eux
Expand Down

0 comments on commit 6ee68e3

Please sign in to comment.