[llvm] workflows/build-ci-container: Add an arm64 container (PR #120828)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 22 12:52:01 PST 2024
================
@@ -75,13 +80,29 @@ jobs:
steps:
- name: Download container
uses: actions/download-artifact at v4
- with:
- name: container
- name: Push Container
run: |
- podman load -i ${{ needs.build-ci-container.outputs.container-filename }}
- podman tag ${{ needs.build-ci-container.outputs.container-name-tag }} ${{ needs.build-ci-container.outputs.container-name }}:latest
+ function push_container {
+ image_name=$1
+ latest_name=$(echo $image_name | sed 's/:[.0-9]\+$/:latest/g')
+ podman tag $image_name $latest_name
+ echo "Pushing $image_name ..."
+ podman push $image_name
+ echo "Pushing $latest_name ..."
+ podman push $latest_name
+ }
+
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io
- podman push ${{ needs.build-ci-container.outputs.container-name-tag }}
- podman push ${{ needs.build-ci-container.outputs.container-name }}:latest
+ for f in $(find . -iname *.tar); do
+ image_name=$(podman load -q -i $f | sed 's/Loaded image: //g')
+ push_container $image_name
+
+ if echo $image_name | grep '/amd64/'; then
+ # For amd64, create an alias with the arch component removed.
----------------
boomanaiden154 wrote:
Do we need to add an alias? It shouldn't be too difficult to switch things over to use the new naming, and I would personally prefer the consistency.
https://github.com/llvm/llvm-project/pull/120828
More information about the llvm-commits
mailing list