File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414# exe.dev VM names are global; keep this unique. Defined once, used below.
1515env :
1616 VM_NAME : ngalaiko-computer
17+ GH_INTEGRATION : computer
1718
1819concurrency :
1920 group : deploy
7071 --env RESTIC_PASSWORD="$RESTIC_PASSWORD" \
7172 --env B2_ACCOUNT_ID=0036cfed748e70c0000000002 \
7273 --env B2_ACCOUNT_KEY="$B2_ACCOUNT_KEY"
74+
75+ # rm/new drops vm: attachments, so re-attach every deploy; first deploy
76+ # creates the integration (the GitHub App link itself is web-UI one-time).
77+ - name : Attach GitHub integration
78+ run : |
79+ ssh -i ~/.ssh/id_ed25519 exe.dev integrations attach "$GH_INTEGRATION" "vm:$VM_NAME" \
80+ || ssh -i ~/.ssh/id_ed25519 exe.dev integrations add github \
81+ --name "$GH_INTEGRATION" \
82+ --repository "${{ github.repository }}" \
83+ --attach "vm:$VM_NAME"
You can’t perform that action at this time.
0 commit comments