Skip to content

Commit

Permalink
feat(s3): allocate larger buffer-chunk size
Browse files Browse the repository at this point in the history
  • Loading branch information
hlolli committed Jul 19, 2024
1 parent 5be467a commit 131261f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 110 deletions.
48 changes: 19 additions & 29 deletions .github/workflows/release.docker.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,41 @@
on:
release:
types:
- published
# pull_request:
# types:
# - opened
# - synchronize
# - reopened
# branches-ignore:
# - "dependabot/**"
workflow_dispatch:

name: Release (Docker)

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
docker:
runs-on: ubuntu-latest
env:
PLATFORMS: "linux/amd64,linux/arm64,linux/arm/v7"
VERSION: "${{ github.event_name == 'release' && github.event.release.name || github.sha }}"
VERSION: "${{ github.sha }}"

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v1
- uses: docker/setup-buildx-action@v1

- uses: docker/login-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
username: benbjohnson
password: ${{ secrets.DOCKERHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- id: meta
uses: docker/metadata-action@v3
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: litestream/litestream
tags: |
type=ref,event=branch
type=ref,event=pr
type=sha
type=sha,format=long
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- uses: docker/build-push-action@v2
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: ${{ env.PLATFORMS }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
LITESTREAM_VERSION=${{ env.VERSION }}
81 changes: 0 additions & 81 deletions .github/workflows/release.linux.yml

This file was deleted.

1 change: 1 addition & 0 deletions s3/replica_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func (c *ReplicaClient) Init(ctx context.Context) (err error) {
}
c.s3 = s3.New(sess)
c.uploader = s3manager.NewUploader(sess)
c.uploader.PartSize = 1024 * 1024 * 50
return nil
}

Expand Down

0 comments on commit 131261f

Please sign in to comment.