[llvm] [Github] Fix build metrics container push (PR #118130)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 29 12:06:51 PST 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-github-workflow

Author: Aiden Grossman (boomanaiden154)

<details>
<summary>Changes</summary>

This patch fixes a couple typos that were preventing the build metrics container job from pushing the container to GHCR.

---
Full diff: https://github.com/llvm/llvm-project/pull/118130.diff


1 Files Affected:

- (modified) .github/workflows/build-metrics-container.yml (+2-2) 


``````````diff
diff --git a/.github/workflows/build-metrics-container.yml b/.github/workflows/build-metrics-container.yml
index 4f6fb14b21cb6c..751ab679411dcb 100644
--- a/.github/workflows/build-metrics-container.yml
+++ b/.github/workflows/build-metrics-container.yml
@@ -35,7 +35,7 @@ jobs:
         run: |
           tag=`date +%s`
           container_name="ghcr.io/$GITHUB_REPOSITORY_OWNER/metrics"
-          echo "container-name=$container-name" >> $GITHUB_OUTPUT
+          echo "container-name=$container_name" >> $GITHUB_OUTPUT
           echo "container-name-tag=$container_name:$tag" >> $GITHUB_OUTPUT
           echo "container-filename=$(echo $container_name:$tag  | sed -e 's/\//-/g' -e 's/:/-/g').tar" >> $GITHUB_OUTPUT
       - name: Build Container
@@ -71,7 +71,7 @@ jobs:
           name: container
       - name: Push Container
         run: |
-          podman load -i ${{ needs.build-metrics-container.outptus.container-filename }}
+          podman load -i ${{ needs.build-metrics-container.outputs.container-filename }}
           podman tag ${{ needs.build-metrics-container.outputs.container-name-tag }} ${{ needs.build-metrics-container.outputs.container-name }}:latest
           podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io
           podman push ${{ needs.build-metrics-container.outputs.container-name-tag }}

``````````

</details>


https://github.com/llvm/llvm-project/pull/118130


More information about the llvm-commits mailing list