fixed syntax
Some checks failed
Upload hello.txt to S3 / upload (push) Has been cancelled

This commit is contained in:
Sohrab Behdani 2025-03-18 20:47:14 +03:30
parent 0115a17799
commit e6189f5dc5

View file

@ -13,26 +13,29 @@ jobs:
privileged: true privileged: true
steps: steps:
- name: nodejs - name: Install Node.js
- run: pacman -Syu --noconfirm nodejs run: pacman -Syu --noconfirm nodejs
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Create hello.txt - name: Create hello.txt
run: echo "Hello, Forgejo CI!" > hello.txt run: echo "Hello, Forgejo CI!" > hello.txt
- name: Install MinIO Client (mc) - name: Install MinIO Client (mc)
run: | run: |
curl -O https://dl.min.io/client/mc/release/linux-amd64/mc curl -O https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc chmod +x mc
sudo mv mc /usr/local/bin/ mv mc /usr/local/bin/
- name: Configure MinIO Client - name: Configure MinIO Client
run: | run: |
mc alias set myminio $S3_ENDPOINT $S3_ACCESS_KEY $S3_SECRET_KEY mc alias set myminio $S3_ENDPOINT $S3_ACCESS_KEY $S3_SECRET_KEY
- name: Upload file to S3 - name: Upload file to S3
run: | run: |
mc cp hello.txt myminio/$S3_BUCKET_NAME/hello.txt mc cp hello.txt myminio/$S3_BUCKET_NAME/hello.txt
env: env:
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }} S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }} S3_ACCESS_KEY: ${{ secrets.S3_ACCESS_KEY }}