mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
find tag
This commit is contained in:
parent
46c61d747b
commit
a406fd05de
1 changed files with 4 additions and 1 deletions
|
|
@ -43,7 +43,10 @@ runs:
|
||||||
- name: Run docker image
|
- name: Run docker image
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
docker run --privileged --volume .:/github/workspace/ ghcr.io/jasonn3/build-container-installer:${{ github.action_ref }} \
|
# Check if running inside of the action repo
|
||||||
|
if [[ -z "${{ github.action_ref }}" ]]; then if [[ "${{ github.ref_name }}" =~ (.*)/merge ]]; then tag=${BASH_REMATCH[1]}; else tag=${{ github.ref_name }}; fi
|
||||||
|
if [[ -z "${tag}" ]]; then tag=${{ github.action_ref }}; fi
|
||||||
|
docker run --privileged --volume .:/github/workspace/ ghcr.io/jasonn3/build-container-installer:${tag} \
|
||||||
ARCH=${{ inputs.arch }} \
|
ARCH=${{ inputs.arch }} \
|
||||||
IMAGE_NAME=${{ inputs.image_name }} \
|
IMAGE_NAME=${{ inputs.image_name }} \
|
||||||
IMAGE_REPO=${{ inputs.image_repo }} \
|
IMAGE_REPO=${{ inputs.image_repo }} \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue