Skip to content

Commit a256bce

Browse files
committed
fix artifact creation
1 parent 6c37ac8 commit a256bce

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

.github/workflows/fatimage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,14 @@ jobs:
102102
sleep 5
103103
done
104104
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
107107
108108
- name: Upload manifest artifact
109109
uses: actions/upload-artifact@v4
110110
with:
111-
name: image-details
111+
name: image-details-${{ env.BUILD }}
112112
path: |
113-
./image-id-${{ env.BUILD }}.txt
114-
./image-name-${{ env.BUILD }}.txt
113+
./image-id.txt
114+
./image-name.txt
115115
overwrite: true

.github/workflows/trivyscan.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Trivy scan image for vulnerabilities
22
on:
33
workflow_dispatch:
4-
pull_request:
5-
branches:
6-
- main
74
push:
85
branches:
96
- ci/nightly-builds
@@ -33,13 +30,13 @@ jobs:
3330
- name: Download image details artifact
3431
uses: actions/download-artifact@v4
3532
with:
36-
name: image-details
33+
name: image-details-${{ env.BUILD }}
3734

3835
- name: Use the downloaded artifact
3936
id: manifest
4037
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)
4340
echo "image-name=${IMAGE_NAME}" >> "$GITHUB_OUTPUT"
4441
echo "image-id=${IMAGE_ID}" >> "$GITHUB_OUTPUT"
4542

0 commit comments

Comments
 (0)