No description
- Shell 89.6%
- Dockerfile 10.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The .s3cfg this action writes had no `use_https` line, so s3cmd spoke plain HTTP to whatever `AWS_S3_ENDPOINT` named. Against a TLS endpoint that is a redirect at best and an opaque failure at worst — it cost a 403 hunt on fsl-agency's build. HTTPS is now the default (`AWS_USE_HTTPS` unset ⇒ `True`), and an endpoint that is genuinely plain HTTP says so with `AWS_USE_HTTPS=false`. The host stays bare: the scheme belongs to `use_https`, not to `host_base`. |
||
| Dockerfile | ||
| entrypoint.sh | ||
| README.md | ||
S3cmd easy tool for Forgejo Actions
It's just a light packaging over s3cmd installed from alpine base image.
deploy-s3:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: https://git.fsl.sh/actions/s3cmd.git@833dc519f432000591e071da368a4fcd3086d6c1
with:
args: sync dist/ s3://test-ci-forgejo-fsl --delete-removed
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_ENDPOINT: objects.fslhome.org
AWS_REGION: "garage"
# optional, and `true` by default:
AWS_USE_HTTPS: "true"
use_https
HTTPS is the default. The flag is written into .s3cfg as use_https, so an
endpoint on https:// needs nothing but its host in AWS_S3_ENDPOINT:
AWS_USE_HTTPS |
.s3cfg |
|---|---|
| unset | use_https = True |
true / 1 / yes / on (any case) |
use_https = True |
anything else (false, 0, no, off) |
use_https = False |
Set it to false only for a plain-HTTP endpoint — a Garage bound on loopback, say.
The host stays bare (s3.example.org, no scheme): .s3cfg's host_base and
host_bucket take a host, and TLS comes from use_https, not from a URL scheme.