Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aep committed Feb 12, 2024
1 parent b1b4aa9 commit 2ce471f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ jobs:
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v3
- name: Get tags
run: git fetch --tags origin
- uses: actions/checkout@v4
- run: git fetch --tags --force
- uses: wangyoucao577/go-release-action@v1
with:
pre_command: export CGO_ENABLED=0
Expand All @@ -25,4 +24,5 @@ jobs:
goarch: ${{ matrix.goarch }}
binary_name: kra
asset_name: kra-${{ matrix.goos }}-${{ matrix.goarch }}
ldflags: "-X 'github.com/kraudcloud/cli/api.Version=${{github.ref_name}}'"
#extra_files: LICENSE README.md
3 changes: 1 addition & 2 deletions api/layers.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ func (c *Client) PushLayer(ctx context.Context, oid string, b io.Reader, size ui
)

req.Header.Set("Content-Type", "application/x-tar")
req.Header.Set("Content-Length", fmt.Sprintf("%d", size))
req.Header.Set("Expect", "100-continue")
req.ContentLength = int64(size)

if err != nil {
return nil, err
Expand Down

0 comments on commit 2ce471f

Please sign in to comment.