mirror of
https://tvoygit.ru/Djam/r11_workflows.git
synced 2025-02-23 17:02:46 +00:00
debug deploy tokens
This commit is contained in:
parent
e74379f388
commit
bfbd795eb5
1 changed files with 5 additions and 5 deletions
10
action.yml
10
action.yml
|
@ -95,7 +95,7 @@ runs:
|
|||
echo "Deploying artifacts..."
|
||||
echo "********************************************************************"
|
||||
if [ -n "${CI_DEPLOY_SEC}" ]; then
|
||||
echo "CI_DEPLOY: ${CI_DEPLOY_SEC:0:3}***${CI_DEPLOY_SEC: -3}"
|
||||
echo "CI_DEPLOY_SEC: ${CI_DEPLOY_SEC:0:3}***${CI_DEPLOY_SEC: -3}"
|
||||
else
|
||||
echo "CI_DEPLOY: не передан"
|
||||
fi
|
||||
|
@ -120,12 +120,12 @@ runs:
|
|||
run: |
|
||||
cd /home/builder/rpmbuild/SRPMS/
|
||||
for file in *.rpm; do
|
||||
curl --user ${GITHUB_REPOSITORY_OWNER}:${{ secrets.CI_DEPLOY }} \
|
||||
curl --user ${GITHUB_REPOSITORY_OWNER}:${{ inputs.CI_DEPLOY }} \
|
||||
--upload-file "$file" \
|
||||
${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/generic/srpms/"$file"
|
||||
done
|
||||
for file in /home/builder/rpmbuild/RPMS/x86_64/*.rpm; do
|
||||
curl --user ${GITHUB_REPOSITORY_OWNER}:${{ secrets.CI_DEPLOY }} \
|
||||
curl --user ${GITHUB_REPOSITORY_OWNER}:${{ inputs.CI_DEPLOY }} \
|
||||
--upload-file "$file" \
|
||||
${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/rpm/upload
|
||||
done
|
||||
|
@ -138,13 +138,13 @@ runs:
|
|||
echo "Deploying src artifacts..."
|
||||
for file in /home/builder/rpmbuild/SRPMS/*.rpm; do
|
||||
curl -X POST https://api.buildkite.com/v2/packages/organizations/r11-team/registries/r11-srpms/packages \
|
||||
-H "Authorization: Bearer ${{ secrets.PUBLICATOR }}" \
|
||||
-H "Authorization: Bearer ${{ inputs.PUBLICATOR }}" \
|
||||
-F "file=@$file"
|
||||
done
|
||||
echo "Deploying rpm artifacts..."
|
||||
for file in /home/builder/rpmbuild/RPMS/x86_64/*.rpm; do
|
||||
curl -X POST https://api.buildkite.com/v2/packages/organizations/r11-team/registries/r11-x86-64/packages \
|
||||
-H "Authorization: Bearer ${{ secrets.PUBLICATOR }}" \
|
||||
-H "Authorization: Bearer ${{ inputs.PUBLICATOR }}" \
|
||||
-F "file=@$file"
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue