fix: используем vars.GIT_MAIN_URL + секрет TC_GITEA_TOKEN (вм. хардкода)
All checks were successful
build-test / build (push) Successful in 27s
All checks were successful
build-test / build (push) Successful in 27s
This commit is contained in:
@@ -59,21 +59,21 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ratatoskr
|
name: ratatoskr
|
||||||
|
|
||||||
- name: Upload to Gitea Packages (generic)
|
- name: Upload to Gitea Packages
|
||||||
run: |
|
run: |
|
||||||
VERSION="commit-$(echo '${{ gitea.sha }}' | cut -c1-7)"
|
VERSION="commit-$(echo '${{ gitea.sha }}' | cut -c1-7)"
|
||||||
curl -sS -X PUT \
|
curl -sS -X PUT \
|
||||||
-H "Authorization: token ${{ secrets.TC_GITEA_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.TC_GITEA_TOKEN }}" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
"http://gitea.hal9000.home/api/packages/${{ gitea.actor }}/generic/ratatoskr/${VERSION}/linux-amd64/ratatoskr" \
|
"${{ vars.GIT_MAIN_URL }}/api/packages/${{ gitea.actor }}/generic/ratatoskr/${VERSION}/linux-amd64/ratatoskr" \
|
||||||
--data-binary @ratatoskr
|
--data-binary @ratatoskr
|
||||||
echo "Uploaded ratatoskr version ${VERSION}"
|
echo "Uploaded version ${VERSION}"
|
||||||
|
|
||||||
- name: Update latest tag
|
- name: Update latest tag
|
||||||
run: |
|
run: |
|
||||||
curl -sS -X PUT \
|
curl -sS -X PUT \
|
||||||
-H "Authorization: token ${{ secrets.TC_GITEA_TOKEN }}" \
|
-H "Authorization: token ${{ secrets.TC_GITEA_TOKEN }}" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
"http://gitea.hal9000.home/api/packages/${{ gitea.actor }}/generic/ratatoskr/latest/linux-amd64/ratatoskr" \
|
"${{ vars.GIT_MAIN_URL }}/api/packages/${{ gitea.actor }}/generic/ratatoskr/latest/linux-amd64/ratatoskr" \
|
||||||
--data-binary @ratatoskr
|
--data-binary @ratatoskr
|
||||||
echo "Updated 'latest' tag"
|
echo "Updated 'latest' tag"
|
||||||
Reference in New Issue
Block a user