mirror of
https://tvoygit.ru/Djam/r11_workflows.git
synced 2025-02-23 08:52:46 +00:00
update action.yml
This commit is contained in:
parent
b6410ab729
commit
f3f9598805
1 changed files with 8 additions and 8 deletions
16
action.yml
16
action.yml
|
@ -88,36 +88,36 @@ runs:
|
|||
|
||||
- name: Deploy in repos packages
|
||||
if: github.ref == 'refs/heads/rosa2016.1'
|
||||
env:
|
||||
CI_DEPLOY: ${{ secrets.CI_DEPLOY }}
|
||||
# env:
|
||||
# CI_DEPLOY: ${{ secrets.CI_DEPLOY }}
|
||||
run: |
|
||||
echo "Deploying artifacts..."
|
||||
for file in /home/builder/rpmbuild/SRPMS/*.rpm; do
|
||||
curl --user ${GITHUB_REPOSITORY_OWNER}:${CI_DEPLOY} \
|
||||
curl --user ${GITHUB_REPOSITORY_OWNER}:${{ secrets.CI_DEPLOY }} \
|
||||
--upload-file "$file" \
|
||||
${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/rpm/upload
|
||||
done
|
||||
for file in /home/builder/rpmbuild/RPMS/x86_64/*.rpm; do
|
||||
curl --user ${GITHUB_REPOSITORY_OWNER}:${CI_DEPLOY} \
|
||||
curl --user ${GITHUB_REPOSITORY_OWNER}:${{ secrets.CI_DEPLOY }} \
|
||||
--upload-file "$file" \
|
||||
${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/rpm/upload
|
||||
done
|
||||
|
||||
- name: Deploy in buildkitie
|
||||
if: github.ref == 'refs/heads/rosa2016.1'
|
||||
env:
|
||||
PUBLICATOR: ${{ secrets.PUBLICATOR }}
|
||||
# env:
|
||||
# PUBLICATOR: ${{ secrets.PUBLICATOR }}
|
||||
run: |
|
||||
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 ${PUBLICATOR}" \
|
||||
-H "Authorization: Bearer ${{ secrets.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 ${PUBLICATOR}" \
|
||||
-H "Authorization: Bearer ${{ secrets.PUBLICATOR }}" \
|
||||
-F "file=@$file"
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue