[llvm] [Github] Fix build metrics container push (PR #118130)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 29 12:06:18 PST 2024
https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/118130
This patch fixes a couple typos that were preventing the build metrics container job from pushing the container to GHCR.
>From fdd881e039702155a44fac1ca91e718192a4cb3e Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Fri, 29 Nov 2024 19:58:55 +0000
Subject: [PATCH] [Github] Fix build metrics container push
This patch fixes a couple typos that were preventing the build metrics
container job from pushing the container to GHCR.
---
.github/workflows/build-metrics-container.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 }}
More information about the llvm-commits
mailing list