0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-24 03:50:40 +00:00

[skip ci] auto-update documentation

This commit is contained in:
thegeeklab-bot 2024-03-12 19:58:46 +00:00
parent 90cc2c3f87
commit 35c711644a

View File

@ -21,15 +21,12 @@ Woodpecker CI plugin to perform S3 actions.
## Usage ## Usage
```YAML ```YAML
kind: pipeline
name: default
steps: steps:
- name: sync - name: sync
image: quay.io/thegeeklab/wp-s3-action image: quay.io/thegeeklab/wp-s3-action
settings: settings:
access_key: a50d28f4dd477bc184fbd10b376de753 access_key: randomstring
secret_key: bc5785d3ece6a9cdefa42eb99b58986f9095ff1c secret_key: random-secret
region: us-east-1 region: us-east-1
bucket: my-bucket.s3-website-us-east-1.amazonaws.com bucket: my-bucket.s3-website-us-east-1.amazonaws.com
source: folder/to/archive source: folder/to/archive
@ -49,15 +46,12 @@ steps:
**Customize `acl`, `content_type`, `content_encoding` or `cache_control`:** **Customize `acl`, `content_type`, `content_encoding` or `cache_control`:**
```YAML ```YAML
kind: pipeline
name: default
steps: steps:
- name: sync - name: sync
image: quay.io/thegeeklab/wp-s3-action image: quay.io/thegeeklab/wp-s3-action
settings: settings:
access_key: a50d28f4dd477bc184fbd10b376de753 access_key: randomstring
secret_key: bc5785d3ece6a9cdefa42eb99b58986f9095ff1c secret_key: random-secret
region: us-east-1 region: us-east-1
bucket: my-bucket.s3-website-us-east-1.amazonaws.com bucket: my-bucket.s3-website-us-east-1.amazonaws.com
source: folder/to/archive source: folder/to/archive
@ -85,16 +79,13 @@ All `map` parameters can be specified as `map` for a subset of files or as `stri
To use [Minio S3](https://docs.min.io/) its required to set `path_style: true`. To use [Minio S3](https://docs.min.io/) its required to set `path_style: true`.
```YAML ```YAML
kind: pipeline
name: default
steps: steps:
- name: sync - name: sync
image: quay.io/thegeeklab/wp-s3-action image: quay.io/thegeeklab/wp-s3-action
settings: settings:
endpoint: https://minio.example.com endpoint: https://minio.example.com
access_key: a50d28f4dd477bc184fbd10b376de753 access_key: randomstring
secret_key: bc5785d3ece6a9cdefa42eb99b58986f9095ff1c secret_key: random-secret
bucket: my-bucket bucket: my-bucket
source: folder/to/archive source: folder/to/archive
target: /target/location target: /target/location
@ -120,8 +111,8 @@ docker build --file Containerfile.multiarch --tag thegeeklab/wp-s3-action .
```Shell ```Shell
docker run --rm \ docker run --rm \
-e PLUGIN_BUCKET=my_bucket \ -e PLUGIN_BUCKET=my_bucket \
-e AWS_ACCESS_KEY_ID=abc123 \ -e AWS_ACCESS_KEY_ID=randomstring \
-e AWS_SECRET_ACCESS_KEY=xyc789 \ -e AWS_SECRET_ACCESS_KEY=random-secret \
-v $(pwd):/build:z \ -v $(pwd):/build:z \
-w /build \ -w /build \
thegeeklab/wp-s3-action thegeeklab/wp-s3-action