Skip to content

Commit

Permalink
Use action to set rclone config (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
luojiyin1987 committed Jun 23, 2024
1 parent 17ab0c0 commit 023d2fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy-oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ jobs:
cat > .env <<EOF
${{ secrets.ENV_FILE }}
EOF
echo "${{ secrets.RCLONE_FILE }}" > config/rclone/rclone.conf
mkdir build
mv ${{ env.ARTIFACT_PATH }} docker-compose.yml .env start-docker.sh build/
mv ${{ env.ARTIFACT_PATH }} docker-compose.yml .env start-docker.sh config/ build/
- name: Transport Image
uses: garygrossgarten/github-action-scp@release
Expand All @@ -59,7 +60,7 @@ jobs:
command: |
cd /tmp/${{ env.BOX_NAME }}
mkdir -p ~/${{ env.BOX_NAME }}
mv docker-compose.yml .env start-docker.sh ~/${{ env.BOX_NAME }}
mv docker-compose.yml .env start-docker.sh config/ ~/${{ env.BOX_NAME }}
cd ~/${{ env.BOX_NAME }}
chmod +x ./start-docker.sh
echo ${{ secrets.SSH_KEY }} | sudo -S ./start-docker.sh /tmp/${{ env.BOX_NAME }}/${{ env.ARTIFACT_PATH }}
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,12 +486,13 @@ docker compose up -d

1. Set GitHub Repository secrets:

| name | value |
| :--------: | :-------------------------------: |
| `ENV_FILE` | `.env` file shown above |
| `HOST` | IP or Domain Name of Cloud Server |
| `USER` | Account Name of Cloud Server |
| `SSH_KEY` | SSH Private Key of Cloud Server |
| name | value |
| :-----------: | :-------------------------------: |
| `RCLONE_FILE` | rclone configuration file |
| `ENV_FILE` | `.env` file shown above |
| `HOST` | IP or Domain Name of Cloud Server |
| `USER` | Account Name of Cloud Server |
| `SSH_KEY` | SSH Private Key of Cloud Server |

2. Push a Git tag:

Expand Down

0 comments on commit 023d2fd

Please sign in to comment.