.github/workflows/linode.yml #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
jobs: | |
use_s3cmd: | |
runs-on: ubuntu-latest | |
name: Use S3cmd for Linode | |
steps: | |
- name: Set up S3cmd cli tool | |
uses: s3-actions/s3cmd@main | |
with: | |
region: eu-central-1 | |
access_key: ${{ secrets.S3_ACCESS_KEY_LINODE }} | |
secret_key: ${{ secrets.S3_SECRET_KEY_LINODE }} | |
- name: Interact with object storage | |
run: | | |
buck="github-action-${{ github.run_id }}" | |
mkdir example | |
s3cmd mb s3://$buck | |
echo 'foo' >> example/bar | |
s3cmd put example/bar s3://$buck | |
sleep 10 | |
s3cmd rm -r --force s3://$buck | |
sleep 10 | |
s3cmd rb s3://$buck |