mirror of
https://tvoygit.ru/Djam/r11_workflows.git
synced 2025-02-23 17:02:46 +00:00
update action.yml
This commit is contained in:
parent
4fd2ad4a14
commit
a20f852d96
1 changed files with 13 additions and 2 deletions
15
action.yml
15
action.yml
|
@ -18,36 +18,45 @@ runs:
|
||||||
echo "SPECFILE=${SPECFILE}" > .env
|
echo "SPECFILE=${SPECFILE}" > .env
|
||||||
source .env
|
source .env
|
||||||
echo "SPECFILE = ${SPECFILE}"
|
echo "SPECFILE = ${SPECFILE}"
|
||||||
|
|
||||||
- name: Debug Print environment variables
|
- name: Debug Print environment variables
|
||||||
run: |
|
run: |
|
||||||
source .env
|
source .env
|
||||||
env
|
env
|
||||||
|
|
||||||
- name: Debug os version and check exists spec
|
- name: Debug os version and check exists spec
|
||||||
run: |
|
run: |
|
||||||
cat /etc/*release*
|
cat /etc/*release*
|
||||||
echo "check specfile" && [ -f ${SPECFILE} ] || exit 1
|
echo "check specfile" && [ -f ${SPECFILE} ] || exit 1
|
||||||
|
|
||||||
- name: Remove djam_personal repo
|
- name: Remove djam_personal repo
|
||||||
run: |
|
run: |
|
||||||
urpmq --list-media
|
urpmq --list-media
|
||||||
# if urpmq --list-media | grep -q "djam_personal"; then sudo urpmi.removemedia djam_personal; fi
|
if urpmq --list-media | grep -q "djam_personal"; then sudo urpmi.removemedia djam_personal; fi
|
||||||
|
|
||||||
- name: Update repo
|
- name: Update repo
|
||||||
run: |
|
run: |
|
||||||
sudo urpmi.update -fa
|
sudo urpmi.update -fa
|
||||||
|
|
||||||
- name: Download sources artifacts
|
- name: Download sources artifacts
|
||||||
run: |
|
run: |
|
||||||
# ./download_sources.sh
|
./download_sources.sh
|
||||||
|
|
||||||
- name: Linter
|
- name: Linter
|
||||||
run: |
|
run: |
|
||||||
source .env
|
source .env
|
||||||
rpmlint ${SPECFILE}
|
rpmlint ${SPECFILE}
|
||||||
|
|
||||||
- name: Install dependies
|
- name: Install dependies
|
||||||
run: |
|
run: |
|
||||||
source .env
|
source .env
|
||||||
sudo urpmi --buildrequires --auto ${SPECFILE}
|
sudo urpmi --buildrequires --auto ${SPECFILE}
|
||||||
|
|
||||||
- name: Build rpm
|
- name: Build rpm
|
||||||
run: |
|
run: |
|
||||||
source .env
|
source .env
|
||||||
rpmbuild -ba ${SPECFILE}
|
rpmbuild -ba ${SPECFILE}
|
||||||
|
|
||||||
- name: Deploy in repos packages
|
- name: Deploy in repos packages
|
||||||
if: github.ref == 'refs/heads/rosa2016.1'
|
if: github.ref == 'refs/heads/rosa2016.1'
|
||||||
run: |
|
run: |
|
||||||
|
@ -56,6 +65,7 @@ runs:
|
||||||
--upload-file /home/builder/rpmbuild/SRPMS/*.rpm \
|
--upload-file /home/builder/rpmbuild/SRPMS/*.rpm \
|
||||||
--upload-file /home/builder/rpmbuild/RPMS/x86_64/*.rpm \
|
--upload-file /home/builder/rpmbuild/RPMS/x86_64/*.rpm \
|
||||||
${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/rpm/r11/upload
|
${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/rpm/r11/upload
|
||||||
|
|
||||||
- name: Deploy in buildkitie
|
- name: Deploy in buildkitie
|
||||||
run: |
|
run: |
|
||||||
echo "Deploying src artifacts..."
|
echo "Deploying src artifacts..."
|
||||||
|
@ -66,6 +76,7 @@ runs:
|
||||||
curl -X POST https://api.buildkite.com/v2/packages/organizations/r11-team/registries/r11-x86-64/packages \
|
curl -X POST https://api.buildkite.com/v2/packages/organizations/r11-team/registries/r11-x86-64/packages \
|
||||||
-H "Authorization: Bearer ${PUBLICATOR}" \
|
-H "Authorization: Bearer ${PUBLICATOR}" \
|
||||||
-F "file=@/home/builder/rpmbuild/RPMS/x86_64/*.x86_64.rpm"
|
-F "file=@/home/builder/rpmbuild/RPMS/x86_64/*.x86_64.rpm"
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: packages.buildkite.com/r11-team/r11/builder:latest
|
image: packages.buildkite.com/r11-team/r11/builder:latest
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue