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

@ -71,6 +71,16 @@ jobs:
with: with:
string: ${{ env.IMAGE_REPO }} string: ${{ env.IMAGE_REPO }}
- name: Get image version
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
tags: |
type=ref,event=branch
type=ref,event=pr
- name: Build ISO - name: Build ISO
uses: ./ uses: ./
with: with:
@ -79,6 +89,7 @@ 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 }}
- name: Rename ISO - name: Rename ISO
run: | run: |

View file

@ -29,6 +29,10 @@ inputs:
description: Enable Anaconda WebUI description: Enable Anaconda WebUI
required: false required: false
default: "false" default: "false"
action_version:
description: Version of the action container to run
required: true
default: "latest"
runs: runs:
using: composite using: composite
@ -36,8 +40,7 @@ runs:
- name: Run docker image - name: Run docker image
shell: bash shell: bash
run: | run: |
tag=$( echo ${{ github.ref_name }} | tr '/' ' ' | awk '{ print $1 }' ) docker run --privileged --volume .:/github/workspace/ ghcr.io/jasonn3/build-container-image:${{ inputs.action_version }} \
docker run --privileged --volume .:/github/workspace/ ghcr.io/jasonn3/build-container-image:${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 }} \