diff --git a/action.yml b/action.yml index 0cfde3f..75bd734 100644 --- a/action.yml +++ b/action.yml @@ -18,36 +18,45 @@ runs: echo "SPECFILE=${SPECFILE}" > .env source .env echo "SPECFILE = ${SPECFILE}" + - name: Debug Print environment variables run: | source .env env + - name: Debug os version and check exists spec run: | cat /etc/*release* echo "check specfile" && [ -f ${SPECFILE} ] || exit 1 + - name: Remove djam_personal repo run: | 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 run: | sudo urpmi.update -fa + - name: Download sources artifacts run: | -# ./download_sources.sh + ./download_sources.sh + - name: Linter run: | source .env rpmlint ${SPECFILE} + - name: Install dependies run: | source .env sudo urpmi --buildrequires --auto ${SPECFILE} + - name: Build rpm run: | source .env rpmbuild -ba ${SPECFILE} + - name: Deploy in repos packages if: github.ref == 'refs/heads/rosa2016.1' run: | @@ -56,6 +65,7 @@ runs: --upload-file /home/builder/rpmbuild/SRPMS/*.rpm \ --upload-file /home/builder/rpmbuild/RPMS/x86_64/*.rpm \ ${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/rpm/r11/upload + - name: Deploy in buildkitie run: | 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 \ -H "Authorization: Bearer ${PUBLICATOR}" \ -F "file=@/home/builder/rpmbuild/RPMS/x86_64/*.x86_64.rpm" + container: image: packages.buildkite.com/r11-team/r11/builder:latest