chore(ci): fllow github auth redirect

This commit is contained in:
Arthur Chaloin
2021-02-23 17:04:12 +01:00
parent 5ce2a29ebb
commit 9f4908312a
2 changed files with 1 additions and 6 deletions

View File

@@ -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:

View File

@@ -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:]]=')