mirror of
https://tvoygit.ru/Djam/r11_workflows.git
synced 2025-02-23 08:52:46 +00:00
update actions
This commit is contained in:
parent
fed070de34
commit
e3a567e4b5
1 changed files with 34 additions and 4 deletions
38
action.yml
38
action.yml
|
@ -7,6 +7,9 @@ inputs:
|
|||
CI_DEPLOY:
|
||||
description: CI deploy token
|
||||
required: true
|
||||
REPO_DEPLOY:
|
||||
description: Deploy artefacts to urpm repo
|
||||
required: true
|
||||
|
||||
on:
|
||||
push:
|
||||
|
@ -61,9 +64,6 @@ runs:
|
|||
sudo urpmi.update -fa
|
||||
sudo urpmi --auto-update --auto
|
||||
|
||||
# sudo urpmi --auto \
|
||||
# https://packages.buildkite.com/r11-team/r11-x86-64/files/branding-configs-r11-3.0-3-mdv.x86_64.rpm \
|
||||
# https://packages.buildkite.com/r11-team/r11-x86-64/files/branding-configs-common-3.0-3-mdv.x86_64.rpm
|
||||
|
||||
- name: Download sources artifacts
|
||||
run: |
|
||||
|
@ -346,7 +346,37 @@ runs:
|
|||
# fi
|
||||
# done
|
||||
# done
|
||||
|
||||
|
||||
- name: Deploy to urpm packages
|
||||
if: github.ref == 'refs/heads/rosa2016.1'
|
||||
run: |
|
||||
echo "Deploying src artifacts..."
|
||||
for file in /home/builder/rpmbuild/SRPMS/*.rpm; do
|
||||
curl -X POST http://135.181.14.149:8080/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/"
|
||||
)
|
||||
|
||||
for arch in "${!arch_urls[@]}"; do
|
||||
echo "Deploying rpm artifacts for $arch..."
|
||||
for file in /home/builder/rpmbuild/RPMS/$arch/*.rpm; do
|
||||
if [ -f "$file" ]; then
|
||||
curl -X POST "${arch_urls[$arch]}" \
|
||||
-H "Authorization: Bearer ${{ inputs.REPO_DEPLOY }}" \
|
||||
-F "package=@$file"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
|
||||
|
||||
container:
|
||||
image: docker.io/zhemoitel/r11:builder-20250125
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue