mirror of
https://github.com/enix/x509-certificate-exporter.git
synced 2026-02-14 18:10:01 +00:00
chore(ci): fllow github auth redirect
This commit is contained in:
@@ -111,11 +111,6 @@ release-assets:
|
||||
go build -o $BIN -ldflags "-X \"enix.io/$CI_PROJECT_NAME/internal.Version=${CI_COMMIT_REF_SLUG:1}\"" ./cmd/$CI_PROJECT_NAME
|
||||
./test/upload-release.sh "github_api_token=$GITHUB_TOKEN" "owner=enix" "repo=$CI_PROJECT_NAME" "tag=v2.3.0" "filename=$BIN"
|
||||
done
|
||||
after_script:
|
||||
- kind delete cluster --name $CI_PIPELINE_ID
|
||||
artifacts:
|
||||
paths:
|
||||
- coverage.html
|
||||
|
||||
docker-hub:
|
||||
extends:
|
||||
|
||||
@@ -49,7 +49,7 @@ fi
|
||||
curl -o /dev/null -sH "$AUTH" $GH_REPO || { echo "Error: Invalid repo, token or network issue!"; exit 1; }
|
||||
|
||||
# Read asset tags.
|
||||
response=$(curl -sH "$AUTH" $GH_TAGS)
|
||||
response=$(curl -sLH "$AUTH" $GH_TAGS)
|
||||
|
||||
# Get ID of the asset based on given filename.
|
||||
eval $(echo "$response" | grep -m 1 "id.:" | grep -w id | tr : = | tr -cd '[[:alnum:]]=')
|
||||
|
||||
Reference in New Issue
Block a user