@@ -26,35 +26,35 @@ jobs:
2626 container-name : ${{ steps.vars.outputs.container-name }}
2727 container-name-tag : ${{ steps.vars.outputs.container-name-tag }}
2828 container-filename : ${{ steps.vars.outputs.container-filename }}
29- steps :
30- - name : Checkout LLVM
31- uses : actions/checkout@v4
32- with :
33- sparse-checkout : .ci/metrics/
34- - name : Write Variables
35- id : vars
36- run : |
37- tag=`date +%s`
38- container_name="ghcr.io/$GITHUB_REPOSITORY_OWNER/metrics"
39- echo "container-name=$container-name" >> $GITHUB_OUTPUT
40- echo "container-name-tag=$container_name:$tag" >> $GITHUB_OUTPUT
41- echo "container-filename=$(echo $container_name:$tag | sed -e 's/\//-/g' -e 's/:/-/g').tar" >> $GITHUB_OUTPUT
42- - name : Build Container
43- working-directory : ./.ci/metrics
44- run : |
45- podman build -t ${{ steps.vars.outputs.container-name-tag }} -f Dockerfile .
46- # Save the container so we have it in case the push fails. This also
47- # allows us to separate the push step into a different job so we can
48- # maintain minimal permissions while building the container.
49- - name : Save Container Image
50- run : |
51- podman save ${{ steps.vars.outputs.container-name-tag }} > ${{ steps.vars.outputs.container-filename }}
52- - name : Upload Container Image
53- uses : actions/upload-artifact@v4
54- with :
55- name : container
56- path : ${{ steps.vars.outputs.container-filename }}
57- retention-days : 14
29+ steps :
30+ - name : Checkout LLVM
31+ uses : actions/checkout@v4
32+ with :
33+ sparse-checkout : .ci/metrics/
34+ - name : Write Variables
35+ id : vars
36+ run : |
37+ tag=`date +%s`
38+ container_name="ghcr.io/$GITHUB_REPOSITORY_OWNER/metrics"
39+ echo "container-name=$container-name" >> $GITHUB_OUTPUT
40+ echo "container-name-tag=$container_name:$tag" >> $GITHUB_OUTPUT
41+ echo "container-filename=$(echo $container_name:$tag | sed -e 's/\//-/g' -e 's/:/-/g').tar" >> $GITHUB_OUTPUT
42+ - name : Build Container
43+ working-directory : ./.ci/metrics
44+ run : |
45+ podman build -t ${{ steps.vars.outputs.container-name-tag }} -f Dockerfile .
46+ # Save the container so we have it in case the push fails. This also
47+ # allows us to separate the push step into a different job so we can
48+ # maintain minimal permissions while building the container.
49+ - name : Save Container Image
50+ run : |
51+ podman save ${{ steps.vars.outputs.container-name-tag }} > ${{ steps.vars.outputs.container-filename }}
52+ - name : Upload Container Image
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : container
56+ path : ${{ steps.vars.outputs.container-filename }}
57+ retention-days : 14
5858
5959 push-metrics-container :
6060 if : github.event_name == 'push'
0 commit comments