Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
award

GitHub Action

Use S3cmd

v0.1 Pre-release

Use S3cmd

award

Use S3cmd

Use S3cmd cli to interact with s3 object storage

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Use S3cmd

uses: s3-actions/s3cmd@v0.1

Learn more about this action in s3-actions/s3cmd

Choose a version

S3cmd

This action is a simple wrapper for S3cmd.

It is currently only tested with linode. It works with all environments though, it just a matter of setting the right flags.

Inputs

cluster

Not required The cluster the buckets reside in. Default "ap-south-1".

access_key

Required The buckets access key.

secret_key

Required The buckets secret key.

Example usage

on:
  push:
    branches:
      - main

jobs:
  expose_s3cmd:
    runs-on: ubuntu-latest
    
    name: Use S3cmd
    steps:
      - name: Set up S3cmd cli tool
        uses: s3-actions/s3cmd@v0.1
        with:
          cluster: 'eu-central-1'
          access_key: ${{ secrets.S3_ACCESS_KEY }}
          secret_key: ${{ secrets.S3_SECRET_KEY }}

      - name: Interact with object storage
        run: |
          echo 'foo' >> bar
          s3cmd put bar s3://foobarbaz