Skip to content

fix(app): add mui5 workaround to the shell #10553

fix(app): add mui5 workaround to the shell

fix(app): add mui5 workaround to the shell #10553

Workflow file for this run

# Copyright Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: PR Build Image (Hermetic)
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.event.pull_request.head.ref }}
cancel-in-progress: true
env:
REGISTRY: quay.io
IMAGE_NAME: rhdh-community/rhdh
jobs:
build-image:
name: Build Image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check Image and Relevant Changes
id: check-image
uses: ./.github/actions/check-image-and-changes
- name: Store isSkipped status
run: |
mkdir -p ./rhdh-skip-artifacts
echo "${{ steps.check-image.outputs.is_skipped }}" > ./rhdh-skip-artifacts/isSkipped.txt
- name: Upload isSkipped status
uses: actions/upload-artifact@v4
with:
name: pr-${{ github.event.number }}-${{ env.SHORT_SHA }}-isSkipped
path: ./rhdh-skip-artifacts/isSkipped.txt
retention-days: 1
if-no-files-found: error
- name: Debug outputs
run: |
echo "Image exists: ${{ steps.check-image.outputs.image_exists }}"
echo "Relevant changes: ${{ steps.check-image.outputs.relevant_changes }}"
echo "SHORT_SHA: ${{ env.SHORT_SHA }}"
echo "PR Number: ${{ github.event.number }}"
echo "Base Tag: pr-${{ github.event.number }}"
echo "Commit Tag: pr-${{ github.event.number }}-${{ env.SHORT_SHA }}"
- name: Get the latest commits from base branch
if: ${{ steps.check-image.outputs.is_skipped != 'true' }}
run: |
git remote add base-origin https://github.com/${{ github.repository }} || true
git config user.name "${{ github.event.pull_request.user.login }}"
git config user.email "${{ github.event.pull_request.user.email }}"
echo "Updating PR with latest commits from ${{ github.event.pull_request.base.ref }} ..."
git fetch base-origin ${{ github.event.pull_request.base.ref }}
git merge --no-edit base-origin/${{ github.event.pull_request.base.ref }}
- name: Build Image (Hermetic)
if: ${{ steps.check-image.outputs.is_skipped != 'true' }}
uses: ./.github/actions/docker-build
with:
registry: ${{ env.REGISTRY }}
imageName: ${{ env.IMAGE_NAME }}
imageTags: |
pr-${{ github.event.number }}
pr-${{ github.event.number }}-${{ env.SHORT_SHA }}
enableHermeticBuild: true
imageLabels: quay.expires-after=14d
push: false
platform: linux/amd64
dockerfilePath: .rhdh/docker/Dockerfile