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

use image tag

This commit is contained in:
Jason N. 2024-02-26 09:25:58 -05:00
parent 8f9f0bf91d
commit 9fb7788095
2 changed files with 16 additions and 2 deletions

View file

@ -29,6 +29,10 @@ inputs:
description: Enable Anaconda WebUI
required: false
default: "false"
action_version:
description: Version of the action container to run
required: true
default: "latest"
runs:
using: composite
@ -36,8 +40,7 @@ runs:
- 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} \
docker run --privileged --volume .:/github/workspace/ ghcr.io/jasonn3/build-container-image:${{ inputs.action_version }} \
ARCH=${{ inputs.arch }} \
IMAGE_NAME=${{ inputs.image_name }} \
IMAGE_REPO=${{ inputs.image_repo }} \