This commit is contained in:
parent
0115a17799
commit
e6189f5dc5
1 changed files with 9 additions and 6 deletions
|
@ -13,26 +13,29 @@ jobs:
|
|||
privileged: true
|
||||
|
||||
steps:
|
||||
- name: nodejs
|
||||
- run: pacman -Syu --noconfirm nodejs
|
||||
- name: Install Node.js
|
||||
run: pacman -Syu --noconfirm nodejs
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Create hello.txt
|
||||
run: echo "Hello, Forgejo CI!" > hello.txt
|
||||
|
||||
- name: Install MinIO Client (mc)
|
||||
run: |
|
||||
curl -O https://dl.min.io/client/mc/release/linux-amd64/mc
|
||||
chmod +x mc
|
||||
sudo mv mc /usr/local/bin/
|
||||
|
||||
mv mc /usr/local/bin/
|
||||
|
||||
- name: Configure MinIO Client
|
||||
run: |
|
||||
mc alias set myminio $S3_ENDPOINT $S3_ACCESS_KEY $S3_SECRET_KEY
|
||||
|
||||
|
||||
- name: Upload file to S3
|
||||
run: |
|
||||
mc cp hello.txt myminio/$S3_BUCKET_NAME/hello.txt
|
||||
|
||||
|
||||
env:
|
||||
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
|
||||
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}
|
||||
|
|
Loading…
Add table
Reference in a new issue