forked from InHouseQueue/InHouseQueue
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (26 loc) · 996 Bytes
/
mount-s3-bucket.yml
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
name: Mount S3 Bucket
# Controls when the action will run.
# Make sure you already ran sudo apt-get update and sudo apt-get install s3fs manually on the server, if you dont' have sudo access
on:
# Allows running this workflow manually from the Actions tab
workflow_dispatch:
env:
REPO_NAME: ${{ github.event.repository.name }}
jobs:
clone:
name: Create Mount
runs-on: ubuntu-latest
steps:
- name: Create Mount
uses: appleboy/ssh-action@dce9d565de8d876c11d93fa4fe677c0285a66d78
with:
host: ${{ secrets.HOST_TEST }}
username: ${{ secrets.USERNAME_TEST }}
password: ${{ secrets.PASSWORD_TEST }}
port: ${{ secrets.PORT }}
script: |
cd /home/henry
echo ${{ secrets.AWS_ACCESS_KEY_ID_S3 }}:${{ secrets.AWS_SECRET_ACCESS_KEY_S3}} > ~/.passwd-s3fs
chmod 600 ~/.passwd-s3fs
mkdir ~/s3-bucket
s3fs inhousequeue ~/s3-bucket -o passwd_file=~/.passwd-s3fs