Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

# Create SSH key file with proper handling, stripping Windows-style line endings
printf '%s' "$SSH_KEY" | tr -d '\r' > key.pem
printf '%s\n' "$SSH_KEY" | tr -d '\r' > key.pem
chmod 600 key.pem
Comment on lines 2 to 6

# Verify key file was created properly
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
go build -ldflags="-X 'main.gitHash=${{ github.sha }}' -X 'main.buildTime=${{ env.buildTime }}'" -o unchain .

- name: Deploy to AliCloud ECS
if: github.event_name == 'push'
env:
SSH_HOST: ${{ secrets.ECS_HOST }}
SSH_USER: ${{ secrets.ECS_USER }}
Expand Down
Loading