1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

build separate ubi container

This commit is contained in:
Jason N. 2024-03-20 13:18:05 -04:00
parent 72dc306f31
commit 8a906ec69b
5 changed files with 50 additions and 5 deletions

View file

@ -140,7 +140,7 @@ runs:
shell: bash
run: |
image=$(echo "ghcr.io/${ACTION_REPO}" | tr [:upper:] [:lower:])
# Check if running inside01 of the action repo
# Check if running inside of the action repo
if [[ -z "${ACTION_REPO}" ]]
then
image=$(echo "ghcr.io/${{ github.repository }}" | tr [:upper:] [:lower:])
@ -183,6 +183,11 @@ runs:
then
volumes="--volume ${{ inputs.secrets_dir }}:/run/secrets"
fi
# RHEL
if [[ ${{ inputs.version }} -lt 30 ]]
then
image=${image}-ubi
fi
docker run --privileged ${volumes} --volume ${{ github.workspace }}:/github/workspace/ ${cache} ${image}:${tag} \
ADDITIONAL_TEMPLATES="${{ inputs.additional_templates }}" \
ARCH="${{ inputs.arch }}" \