[llvm] workflows/build-ci-container: Fix container push (PR #125610)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 16:53:14 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Tom Stellard (tstellar)
<details>
<summary>Changes</summary>
After the changes in 89001d1de8ecf03c8820594ea03345b99560272a, the container pushes failed, because it was attempting to push the same container twice. This fixes the sed expression used to push the :latest alias for each container.
---
Full diff: https://github.com/llvm/llvm-project/pull/125610.diff
1 Files Affected:
- (modified) .github/workflows/build-ci-container.yml (+1-1)
``````````diff
diff --git a/.github/workflows/build-ci-container.yml b/.github/workflows/build-ci-container.yml
index c419986da79f2b..8272c8f6e266f0 100644
--- a/.github/workflows/build-ci-container.yml
+++ b/.github/workflows/build-ci-container.yml
@@ -96,7 +96,7 @@ jobs:
run: |
function push_container {
image_name=$1
- latest_name=$(echo $image_name | sed 's/:[.0-9]\+$/:latest/g')
+ latest_name=$(echo $image_name | sed 's/:[a-f0-9]\+$/:latest/g')
podman tag $image_name $latest_name
echo "Pushing $image_name ..."
podman push $image_name
``````````
</details>
https://github.com/llvm/llvm-project/pull/125610
More information about the llvm-commits
mailing list