File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -102,14 +102,14 @@ jobs:
102
102
sleep 5
103
103
done
104
104
IMAGE_NAME=$(openstack image show -f value -c name $IMAGE_ID)
105
- echo $IMAGE_ID > image-id-${{ env.BUILD }} .txt
106
- echo $IMAGE_NAME > image-name-${{ env.BUILD }} .txt
105
+ echo $IMAGE_ID > image-id.txt
106
+ echo $IMAGE_NAME > image-name.txt
107
107
108
108
- name : Upload manifest artifact
109
109
uses : actions/upload-artifact@v4
110
110
with :
111
- name : image-details
111
+ name : image-details-${{ env.BUILD }}
112
112
path : |
113
- ./image-id-${{ env.BUILD }} .txt
114
- ./image-name-${{ env.BUILD }} .txt
113
+ ./image-id.txt
114
+ ./image-name.txt
115
115
overwrite : true
Original file line number Diff line number Diff line change 1
1
name : Trivy scan image for vulnerabilities
2
2
on :
3
3
workflow_dispatch :
4
- pull_request :
5
- branches :
6
- - main
7
4
push :
8
5
branches :
9
6
- ci/nightly-builds
@@ -33,13 +30,13 @@ jobs:
33
30
- name : Download image details artifact
34
31
uses : actions/download-artifact@v4
35
32
with :
36
- name : image-details
33
+ name : image-details-${{ env.BUILD }}
37
34
38
35
- name : Use the downloaded artifact
39
36
id : manifest
40
37
run : |
41
- IMAGE_ID=$(cat image-id-${{ env.BUILD }} .txt)
42
- IMAGE_NAME=$(cat image-name-${{ env.BUILD }} .txt)
38
+ IMAGE_ID=$(cat image-id.txt)
39
+ IMAGE_NAME=$(cat image-name.txt)
43
40
echo "image-name=${IMAGE_NAME}" >> "$GITHUB_OUTPUT"
44
41
echo "image-id=${IMAGE_ID}" >> "$GITHUB_OUTPUT"
45
42
You can’t perform that action at this time.
0 commit comments