diff --git a/.gitea/workflows/deploy_trigger.yaml b/.gitea/workflows/deploy_trigger.yaml index 706ea71..88e522b 100644 --- a/.gitea/workflows/deploy_trigger.yaml +++ b/.gitea/workflows/deploy_trigger.yaml @@ -32,11 +32,9 @@ jobs: REGISTRY: hub.docker.com REPO: ${{ github.repository }} run: | - REPO2=$(echo $REPO | cut -d'/' -f2) - echo $REPO - echo $REPO2 + REPO_NAME=$(echo $REPO | cut -d'/' -f2) - TAGS=$(wget -q -O - "https://$REGISTRY/v2/namespaces/molvaapp/repositories/$REPO/tags?page_size=100" | jq -r '.results[].name' | tr '\n' ',') + TAGS=$(wget -q -O - "https://$REGISTRY/v2/namespaces/molvaapp/repositories/$REPO_NAME/tags?page_size=100" | jq -r '.results[].name' | tr '\n' ',') echo "version_options=${TAGS%,}" >> $GITHUB_OUTPUT @@ -44,7 +42,7 @@ jobs: uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.PAT_TOKEN }} - repository: ${{ github.repository_name }} + repository: ${{ github.repository }} event-type: deploy-request client-payload: | {