Skip to content

Commit

Permalink
Merge pull request #570 from raobilal28/master
Browse files Browse the repository at this point in the history
push homer-app deb and rpm packages to packagecloud
  • Loading branch information
adubovikov authored Oct 11, 2024
2 parents 86e89e2 + 1c61a69 commit 2707c44
Showing 1 changed file with 37 additions and 2 deletions.
39 changes: 37 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,43 @@ jobs:
release_name: homer-app-${{ env.TAG_NAME }}
draft: false
prerelease: false
overwrite: true

overwrite: true

- name: Check PACKAGECLOUD secret presence
id: checkpackagecloud
shell: bash
run: |
if [ "$SECRET" == "" ] || [ "$USERNAME" == "" ]; then
echo "secretspresent=false" >> $GITHUB_OUTPUT
else
echo "secretspresent=true" >> $GITHUB_OUTPUT
fi
env:
SECRET: ${{ secrets.PACKAGECLOUD_TOKEN }}
USERNAME: ${{ secrets.PACKAGECLOUD_USERNAME }}

- name: upload deb packagecloud
if: ${{ steps.checkpackagecloud.outputs.secretspresent == 'true' }}
uses: danielmundi/upload-packagecloud@v1
with:
PACKAGE-NAME: homer-app-${{ env.TAG_NAME }}-amd64.deb
PACKAGECLOUD-REPO: sipcapture
PACKAGECLOUD-DISTRIB: any/any
PACKAGECLOUD-USERNAME: ${{ secrets.PACKAGECLOUD_USERNAME }}
PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
continue-on-error: true

- name: upload rpm packagecloud
if: ${{ steps.checkpackagecloud.outputs.secretspresent == 'true' }}
uses: danielmundi/upload-packagecloud@v1
with:
PACKAGE-NAME: homer-app-${{ env.TAG_NAME }}-amd64.rpm
PACKAGECLOUD-REPO: sipcapture
PACKAGECLOUD-DISTRIB: rpm_any/rpm_any
PACKAGECLOUD-USERNAME: ${{ secrets.PACKAGECLOUD_USERNAME }}
PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
continue-on-error: true

docker-push:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2707c44

Please sign in to comment.