mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
Update action.yml
This commit is contained in:
parent
324f92fd1a
commit
4b4550e44f
1 changed files with 9 additions and 1 deletions
10
action.yml
10
action.yml
|
|
@ -47,13 +47,21 @@ inputs:
|
|||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Lowercase Registry
|
||||
id: registry_case
|
||||
uses: ASzc/change-string-case-action@v6
|
||||
with:
|
||||
string: ghcr.io/${{ github.repository }}
|
||||
|
||||
- name: Run docker image
|
||||
shell: bash
|
||||
run: |
|
||||
# Check if running inside of the action repo
|
||||
if [[ -z "${{ github.action_ref }}" ]]; then if [[ "${{ github.ref_name }}" =~ (.*)/merge ]]; then tag=pr-${BASH_REMATCH[1]}; else tag=${{ github.ref_name }}; fi; fi
|
||||
if [[ -z "${tag}" ]]; then tag=${{ github.action_ref }}; fi
|
||||
docker run --privileged --volume .:/github/workspace/ ghcr.io/jasonn3/build-container-installer:${tag} \
|
||||
image=${{ steps.registry_case.outputs.lowercase }}
|
||||
if [[ ${{ github.event_name }} == 'pull_request' ]]; then image="${image}/build-container-installer"; fi
|
||||
docker run --privileged --volume .:/github/workspace/ ${image}:${tag} \
|
||||
ARCH=${{ inputs.arch }} \
|
||||
IMAGE_NAME=${{ inputs.image_name }} \
|
||||
IMAGE_REPO=${{ inputs.image_repo }} \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue