Skip to content

Commit 9749d86

Browse files
committed
feat(ci): pin install.sh release asset to the released version
1 parent 12a9cce commit 9749d86

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/dokploy.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ jobs:
156156
run: |
157157
curl -fsSL https://raw.githubusercontent.com/Dokploy/website/main/apps/website/public/install.sh -o install.sh
158158
head -1 install.sh | grep -q '^#!' || { echo "Downloaded install.sh is not a shell script"; exit 1; }
159+
grep -q 'DOKPLOY_VERSION' install.sh || { echo "install.sh no longer supports DOKPLOY_VERSION pinning"; exit 1; }
160+
{ head -1 install.sh; echo "DOKPLOY_VERSION=\"\${DOKPLOY_VERSION:-${{ steps.get_version.outputs.version }}}\""; tail -n +2 install.sh; } > install-pinned.sh
161+
mv install-pinned.sh install.sh
159162
160163
- name: Create Release
161164
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)