mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
Remove need for action_version (#27)
This commit is contained in:
parent
88d7731848
commit
41838b9ab6
3 changed files with 6 additions and 5 deletions
1
.github/workflows/build-and-test.yml
vendored
1
.github/workflows/build-and-test.yml
vendored
|
|
@ -87,7 +87,6 @@ jobs:
|
||||||
image_repo: ${{ env.IMAGE_REPO}}
|
image_repo: ${{ env.IMAGE_REPO}}
|
||||||
version: ${{ env.VERSION }}
|
version: ${{ env.VERSION }}
|
||||||
variant: ${{ env.VARIANT }}
|
variant: ${{ env.VARIANT }}
|
||||||
action_version: ${{ steps.meta.outputs.tags || 'latest' }}
|
|
||||||
|
|
||||||
- name: Rename ISO
|
- name: Rename ISO
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ This action is designed to be called from a GitHub workflow using the following
|
||||||
image_repo: ${{ env.IMAGE_REPO}}
|
image_repo: ${{ env.IMAGE_REPO}}
|
||||||
version: ${{ env.VERSION }}
|
version: ${{ env.VERSION }}
|
||||||
variant: ${{ env.VARIANT }}
|
variant: ${{ env.VARIANT }}
|
||||||
action_version: v1.0.0
|
|
||||||
```
|
```
|
||||||
|
|
||||||
See [Customizing](#customizing) for information about customizing the ISO that gets created using `with`
|
See [Customizing](#customizing) for information about customizing the ISO that gets created using `with`
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,8 @@ inputs:
|
||||||
default: "false"
|
default: "false"
|
||||||
action_version:
|
action_version:
|
||||||
description: Version of the action container to run
|
description: Version of the action container to run
|
||||||
required: true
|
deprecationMessage: No longer used. github.action_ref replaces the need for this. Will be removed in a future version.
|
||||||
default: "latest"
|
required: false
|
||||||
additional_templates:
|
additional_templates:
|
||||||
description: Space delimetered list of additional Lorax templates to include
|
description: Space delimetered list of additional Lorax templates to include
|
||||||
required: false
|
required: false
|
||||||
|
|
@ -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:${{ inputs.action_version }} \
|
# 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} \
|
||||||
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