FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
bewcloud/.github/workflows/deploy.yml at main · bewcloud/bewcloud · GitHub
bewcloud
/
bewcloud
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
56
Star
1.2k
Code
Issues
15
Pull requests
3
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
bewcloud
/
.github
/
workflows
/
deploy.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
35 lines (32 loc) · 1.12 KB
Breadcrumbs
bewcloud
/
.github
/
workflows
/
deploy.yml
Copy path
File metadata and controls
35 lines (32 loc) · 1.12 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name
:
Deploy
on
:
push
:
branches
:
-
main
workflow_dispatch
:
jobs
:
deploy
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v6
-
name
:
Configure SSH
run
:
|
mkdir -p ~/.ssh/
echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/server.key
chmod 600 ~/.ssh/server.key
cat >>~/.ssh/config <<END
Host server
HostName $SSH_HOST
User $SSH_USER
IdentityFile ~/.ssh/server.key
StrictHostKeyChecking no
END
cat ~/.ssh/config
env
:
SSH_HOST
:
${{ secrets.SSH_HOST }}
SSH_USER
:
${{ secrets.SSH_USER }}
SSH_KEY
:
${{ secrets.SSH_KEY }}
-
name
:
Deploy via SSH
run
:
ssh server "cd apps/bewcloud && git add . && git stash && git pull origin main && git stash clear && git remote prune origin && cp $CONFIG_PATH/.env . && cp $CONFIG_PATH/bewcloud.config.ts . && cp $CONFIG_PATH/docker-compose.yml . && docker system prune -f && docker compose up -d --build && docker compose ps && docker compose logs"
env
:
CONFIG_PATH
:
${{ secrets.CONFIG_PATH }}
Back
|
FazBrowse Home
|
New Git URL