Skip to content

Commit

Permalink
Fix codecov uploading for go tekton pipeline
Browse files Browse the repository at this point in the history
This should properly fix it, we should probably use a step actions here
like we do in the other coverage pipelinerun

Signed-off-by: Chmouel Boudjnah <[email protected]>
  • Loading branch information
chmouel committed May 3, 2024
1 parent 85a14cd commit 9493299
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .tekton/generate-coverage-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ spec:
ARCH=aarch64
git config --global --add safe.directory $(workspaces.source.path)
git fetch -a --tags
version=$(curl -s https://uploader.codecov.io/${ARCH}/latest| sed -n '/full_version/ { s/.*full_version...//;s/".*//;p; }')
curl -LOs https://uploader.codecov.io/${version}/${ARCH}/codecov
curl -LOs https://uploader.codecov.io/v0.7.3/aarch64/codecov
chmod +x ./codecov
./codecov -C {{revision}} -v
- name: upload-release
Expand Down
6 changes: 3 additions & 3 deletions .tekton/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ spec:
script: |
#!/usr/bin/env bash
set -eux
ARCH=aarch64
git config --global --add safe.directory $(workspaces.source.path)
git fetch -a --tags
version=$(curl -s https://uploader.codecov.io/aarch64/latest| sed -n '/full_version/ { s/.*full_version...//;s/".*//;p; }')
curl -LOs https://uploader.codecov.io/${version}/aarch64/codecov
curl -LOs https://uploader.codecov.io/v0.7.3/aarch64/codecov
chmod +x ./codecov
./codecov -P $GITHUB_PULL_REQUEST_ID -C {{revision}}
./codecov -P $GITHUB_PULL_REQUEST_ID -C {{revision}} -v
- name: lint
image: golangci/golangci-lint:latest
workingDir: $(workspaces.source.path)
Expand Down

0 comments on commit 9493299

Please sign in to comment.