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:
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
uses: ./
with:
@ -79,6 +89,7 @@ jobs:
image_repo: ${{ env.IMAGE_REPO}}
version: ${{ env.VERSION }}
variant: ${{ env.VARIANT }}
action_version: ${{ steps.meta.outputs.tags }}
- name: Rename ISO
run: |

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 }} \