mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
manually run docker
This commit is contained in:
parent
8b04f82012
commit
218bb28db1
5 changed files with 57 additions and 13 deletions
24
action.yml
24
action.yml
|
|
@ -31,13 +31,17 @@ inputs:
|
|||
default: "false"
|
||||
|
||||
runs:
|
||||
using: docker
|
||||
image: 'Dockerfile'
|
||||
args:
|
||||
- ARCH=${{ inputs.arch }}
|
||||
- IMAGE_NAME=${{ inputs.image_name }}
|
||||
- IMAGE_REPO=${{ inputs.image_repo }}
|
||||
- VARIANT=${{ inputs.variant }}
|
||||
- VERSION=${{ inputs.version }}
|
||||
- IMAGE_TAG=${{ inputs.image_tag || inputs.version }}
|
||||
- WEB_UI=${{ inputs.web_ui }}
|
||||
using: composite
|
||||
steps:
|
||||
- name: Run docker image
|
||||
shell: bash
|
||||
run: |
|
||||
tag=$( echo ${{ github.ref_name }} | tr '/' ' ' | awk '{ print $1 }' )
|
||||
docker run --privileged --volume .:/github/workspace/ ghcr.io/jasonn3/build-container-image:${tag} \
|
||||
ARCH=${{ inputs.arch }} \
|
||||
IMAGE_NAME=${{ inputs.image_name }} \
|
||||
IMAGE_REPO=${{ inputs.image_repo }} \
|
||||
VARIANT=${{ inputs.variant }} \
|
||||
VERSION=${{ inputs.version }} \
|
||||
IMAGE_TAG=${{ inputs.image_tag || inputs.version }} \
|
||||
WEB_UI=${{ inputs.web_ui }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue