From f05ed4b8f946f128b7bea32402868f4a3b9b61c6 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoytel Date: Fri, 31 Jan 2025 00:28:01 +0300 Subject: [PATCH] fix deploy url --- action.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/action.yml b/action.yml index 202da2c..5522b40 100644 --- a/action.yml +++ b/action.yml @@ -354,17 +354,19 @@ runs: if: github.ref == 'refs/heads/rosa2016.1' run: | echo "Deploying src artifacts..." + export REPOURL="http://135.181.14.149:8888" for file in /home/builder/rpmbuild/SRPMS/*.rpm; do - curl -X POST http://135.181.14.149:8080/src/ \ + curl -X POST $REPOURL/src/ \ -H "Authorization: Bearer ${{ inputs.REPO_DEPLOY }}" \ -F "file=@$file" done declare -A arch_urls=( - ["x86_64"]="http://135.181.14.149:8080/x86_64/" - ["noarch"]="http://135.181.14.149:8080/noarch/" - ["aarch64"]="http://135.181.14.149:8080/aarch64/" - ["riscv64"]="http://135.181.14.149:8080/riscv64/" + ["x86_64"]="$REPOURL/x86_64/" + ["noarch"]="$REPOURL/noarch/" + ["aarch64"]="$REPOURL/aarch64/" + ["riscv64"]="$REPOURL/riscv64/" + ["i386"]="$REPOURL/i386" ) for arch in "${!arch_urls[@]}"; do