Skip to content

Commit 480d92f

Browse files
committed
fix(ci): fix build of release assets
Signed-off-by: Frederico Araujo <[email protected]>
1 parent 3366ff2 commit 480d92f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,13 @@ jobs:
188188
run: |
189189
GHREF=${GITHUB_REF#refs/tags/}; echo "CURRENT_VERSION=${GHREF%%-*}" >> $GITHUB_ENV
190190
echo "CURRENT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
191+
echo "SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
191192
- name: Build Release Assets
192193
id: build_release_assets
193194
shell: bash
194195
run: |
195-
docker pull ${{ env.DOCKER_REGISTRY_REPOSITORY }}:${{ env.CURRENT_TAG }}
196+
docker pull ${{ env.DOCKER_REGISTRY_REPOSITORY }}:${{ env.SHA_SHORT }}
197+
docker tag ${{ env.DOCKER_REGISTRY_REPOSITORY }}:${{ env.SHA_SHORT }} ${{ env.DOCKER_REGISTRY_REPOSITORY }}:${{ env.CURRENT_TAG }}
196198
make package
197199
echo "DEB=$(ls ${{ github.workspace }}/scripts/cpack/*.deb)" >> $GITHUB_ENV
198200
echo "RPM=$(ls ${{ github.workspace }}/scripts/cpack/*.rpm)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)