Skip to content

Commit c8171d2

Browse files
committed
Use separate release tags for images
Change controller workflow to use `latest-controller` tag and blank workflow to use `latest-blank` tag instead of both sharing `latest`. This prevents release metadata conflicts where the name and description were being overwritten by whichever workflow ran last. New download URLs: - Controller: .../releases/download/latest-controller/controller-latest.qcow2 - Blank: .../releases/download/latest-blank/blank-image-latest.qcow2 Assisted-By: Claude (claude-sonnet-4) Signed-off-by: Harald Jensås <hjensas@redhat.com>
1 parent fb040ff commit c8171d2

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/build-blank-image.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ jobs:
102102
```
103103
files: ${{ steps.release_tag.outputs.tagged_image }}
104104

105-
- name: 6. Update 'latest' Release Tag
105+
- name: 6. Update 'latest-blank' Release Tag
106106
uses: softprops/action-gh-release@v2
107107
with:
108-
tag_name: latest
108+
tag_name: latest-blank
109109
name: "Blank Image (Latest)"
110110
prerelease: true
111111
body: |
@@ -117,7 +117,7 @@ jobs:
117117
118118
Use the static URL for the latest build:
119119
```bash
120-
curl -L -O https://github.com/${{ github.repository }}/releases/download/latest/blank-image-latest.qcow2
120+
curl -L -O https://github.com/${{ github.repository }}/releases/download/latest-blank/blank-image-latest.qcow2
121121
```
122122
123123
Or download a specific version from the [releases page](https://github.com/${{ github.repository }}/releases)
@@ -154,11 +154,11 @@ jobs:
154154
# Copy the image with a static name
155155
cp ${{ steps.release_tag.outputs.tagged_image }} blank-image-latest.qcow2
156156
157-
echo "Uploading to latest release with static filename..."
158-
# Upload to latest release, replacing any existing file with the same name
159-
gh release upload latest blank-image-latest.qcow2 --clobber --repo ${{ github.repository }}
157+
echo "Uploading to latest-blank release with static filename..."
158+
# Upload to latest-blank release, replacing any existing file with the same name
159+
gh release upload latest-blank blank-image-latest.qcow2 --clobber --repo ${{ github.repository }}
160160
161161
echo "Static URL available at:"
162-
echo "https://github.com/${{ github.repository }}/releases/download/latest/blank-image-latest.qcow2"
162+
echo "https://github.com/${{ github.repository }}/releases/download/latest-blank/blank-image-latest.qcow2"
163163
env:
164164
GH_TOKEN: ${{ github.token }}

.github/workflows/build-controller-image.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ jobs:
109109
```
110110
files: ${{ steps.release_tag.outputs.tagged_image }}
111111

112-
- name: 7. Update 'latest' Release Tag
112+
- name: 7. Update 'latest-controller' Release Tag
113113
uses: softprops/action-gh-release@v2
114114
with:
115-
tag_name: latest
115+
tag_name: latest-controller
116116
name: "Controller Image (Latest)"
117117
prerelease: true
118118
body: |
@@ -124,7 +124,7 @@ jobs:
124124
125125
Use the static URL for the latest build:
126126
```bash
127-
curl -L -O https://github.com/${{ github.repository }}/releases/download/latest/controller-latest.qcow2
127+
curl -L -O https://github.com/${{ github.repository }}/releases/download/latest-controller/controller-latest.qcow2
128128
```
129129
130130
Or download a specific version from the [releases page](https://github.com/${{ github.repository }}/releases)
@@ -155,11 +155,11 @@ jobs:
155155
# Copy the image with a static name
156156
cp ${{ steps.release_tag.outputs.tagged_image }} controller-latest.qcow2
157157
158-
echo "Uploading to latest release with static filename..."
159-
# Upload to latest release, replacing any existing file with the same name
160-
gh release upload latest controller-latest.qcow2 --clobber --repo ${{ github.repository }}
158+
echo "Uploading to latest-controller release with static filename..."
159+
# Upload to latest-controller release, replacing any existing file with the same name
160+
gh release upload latest-controller controller-latest.qcow2 --clobber --repo ${{ github.repository }}
161161
162162
echo "Static URL available at:"
163-
echo "https://github.com/${{ github.repository }}/releases/download/latest/controller-latest.qcow2"
163+
echo "https://github.com/${{ github.repository }}/releases/download/latest-controller/controller-latest.qcow2"
164164
env:
165165
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)