Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
replaced PACKAGECLOUD_USERNAME with 'qxip' as this PACKAGECLOUD_USERNAME secret is not set in repo.
  • Loading branch information
bilalrao12 authored Jan 10, 2025
1 parent f023262 commit 9e40c59
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,13 @@ jobs:
id: checkpackagecloud
shell: bash
run: |
if [ "$SECRET" == "" ] || [ "$USERNAME" == "" ]; then
if [ "$SECRET" == "" ]; 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' }}
Expand All @@ -83,9 +82,8 @@ jobs:
PACKAGE-NAME: homer-app-${{ env.TAG_NAME }}-amd64.deb
PACKAGECLOUD-REPO: sipcapture
PACKAGECLOUD-DISTRIB: any/any
PACKAGECLOUD-USERNAME: ${{ secrets.PACKAGECLOUD_USERNAME }}
PACKAGECLOUD-USERNAME: qxip
PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
continue-on-error: true

- name: upload rpm packagecloud
if: ${{ steps.checkpackagecloud.outputs.secretspresent == 'true' }}
Expand All @@ -94,9 +92,8 @@ jobs:
PACKAGE-NAME: homer-app-${{ env.TAG_NAME }}-amd64.rpm
PACKAGECLOUD-REPO: sipcapture
PACKAGECLOUD-DISTRIB: rpm_any/rpm_any
PACKAGECLOUD-USERNAME: ${{ secrets.PACKAGECLOUD_USERNAME }}
PACKAGECLOUD-USERNAME: qxip
PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
continue-on-error: true

docker-push:
if: github.event_name != 'pull_request'
Expand Down

0 comments on commit 9e40c59

Please sign in to comment.