Skip to content

.github/workflows/linode.yml #14

.github/workflows/linode.yml

.github/workflows/linode.yml #14

Workflow file for this run

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