Skip to content

Commit 5ed69bf

Browse files
authored
ci: fix binary path in container prepare step (#609)
1 parent 08ff8f5 commit 5ed69bf

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/release.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,9 @@ jobs:
6060
type=raw,value=latest
6161
- name: Prepare binaries for container image
6262
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
63-
env:
64-
VERSION: ${{ github.ref_name }}
6563
run: |
66-
VERSION_NO_V="${VERSION#v}"
67-
cp "dist/pipeleek_${VERSION_NO_V}_linux_amd64" pipeleek_amd64
68-
cp "dist/pipeleek_${VERSION_NO_V}_linux_arm64" pipeleek_arm64
64+
cp "$(find dist -path 'dist/pipeleek_linux_amd64*/pipeleek' -print -quit)" pipeleek_amd64
65+
cp "$(find dist -path 'dist/pipeleek_linux_arm64*/pipeleek' -print -quit)" pipeleek_arm64
6966
chmod +x pipeleek_amd64 pipeleek_arm64
7067
- name: Build and push container image
7168
if: ${{ startsWith(github.ref, 'refs/tags/v') }}

0 commit comments

Comments
 (0)