Skip to content

fix: truncate tag prefix #5

fix: truncate tag prefix

fix: truncate tag prefix #5

Workflow file for this run

name: Megatron Training Demo
on:
workflow_dispatch:
inputs:
base-image:
description: 'Base image to use'
required: false
push:
branches:
- "dmarx/megatron-demo"
- "main"
paths:
- "megatron-demo/**"
- ".github/workflows/megatron-demo.yml"
- ".github/workflows/build.yml"
jobs:
set-tag:
name: Set Image Tag
runs-on: ubuntu-latest
outputs:
image_tag: ${{ steps.set.outputs.tag }}
steps:
- id: set
run: |
TAG="${GITHUB_REF_NAME}-${GITHUB_SHA::7}"
echo "tag=$TAG" >> $GITHUB_OUTPUT
build:
name: Build Container
needs: set-tag
uses: ./.github/workflows/build.yml
secrets: inherit
with:
image-name: megatron-demo
folder: megatron-demo
build-args: |
BASE_IMAGE=${{ inputs.base-image || 'ghcr.io/coreweave/ml-containers/megatron:es-megatron-tensorizer-5fabc1e'}}
IMAGE_TAG=${{ needs.set-tag.outputs.image_tag }}
tag-prefix: ""

Check failure on line 41 in .github/workflows/megatron-demo.yml

View workflow run for this annotation

GitHub Actions / Megatron Training Demo

Invalid workflow file

The workflow is not valid. .github/workflows/megatron-demo.yml (Line: 41, Col: 19): Invalid input, tag-prefix is not defined in the referenced workflow.
tag-suffix: ${{ needs.set-tag.outputs.image_tag }}