diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 0aca76a..a8c6008 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -59,21 +59,21 @@ jobs: with: name: ratatoskr - - name: Upload to Gitea Packages (generic) + - name: Upload to Gitea Packages run: | VERSION="commit-$(echo '${{ gitea.sha }}' | cut -c1-7)" curl -sS -X PUT \ -H "Authorization: token ${{ secrets.TC_GITEA_TOKEN }}" \ -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 - echo "Uploaded ratatoskr version ${VERSION}" + echo "Uploaded version ${VERSION}" - name: Update latest tag run: | curl -sS -X PUT \ -H "Authorization: token ${{ secrets.TC_GITEA_TOKEN }}" \ -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 echo "Updated 'latest' tag" \ No newline at end of file