From 6263a6bf8665e6e98f45b3154ebef11c8142ca96 Mon Sep 17 00:00:00 2001 From: Bilal <58775189+raobilal28@users.noreply.github.com> Date: Thu, 10 Oct 2024 16:53:47 +0500 Subject: [PATCH 1/5] Update build.yml --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48c151a4..d5d4190f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,8 +59,42 @@ 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 From 153ead709f42844f5cfb06ed7f70f2e70a421305 Mon Sep 17 00:00:00 2001 From: Bilal <58775189+raobilal28@users.noreply.github.com> Date: Thu, 10 Oct 2024 16:56:00 +0500 Subject: [PATCH 2/5] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d5d4190f..6c05dd0e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -79,7 +79,7 @@ jobs: uses: danielmundi/upload-packagecloud@v1 with: PACKAGE-NAME: homer-app-${{ env.TAG_NAME }}-amd64.deb - PACKAGECLOUD-REPO: sipcapture + PACKAGECLOUD-REPO: siptest PACKAGECLOUD-DISTRIB: any/any PACKAGECLOUD-USERNAME: ${{ secrets.PACKAGECLOUD_USERNAME }} PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} @@ -90,7 +90,7 @@ jobs: uses: danielmundi/upload-packagecloud@v1 with: PACKAGE-NAME: homer-app-${{ env.TAG_NAME }}-amd64.rpm - PACKAGECLOUD-REPO: sipcapture + PACKAGECLOUD-REPO: siptest PACKAGECLOUD-DISTRIB: rpm_any/rpm_any PACKAGECLOUD-USERNAME: ${{ secrets.PACKAGECLOUD_USERNAME }} PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} From 7511bfbda8bc79a2b9f34b4b2cb7ca0052dcba1b Mon Sep 17 00:00:00 2001 From: Bilal <58775189+raobilal28@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:22:58 +0500 Subject: [PATCH 3/5] Update build.yml --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6c05dd0e..820149a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,12 +2,12 @@ name: App Builder on: push: - branches: [ master, main ] + branches: [ master ] paths-ignore: - '**.md' - '**.yml' pull_request: - branches: [ master, main ] + branches: [ master ] paths-ignore: - '**.md' From 27727f6ddf166d0f624a8320f9d2e66d56c04fb6 Mon Sep 17 00:00:00 2001 From: Bilal <58775189+raobilal28@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:36:22 +0500 Subject: [PATCH 4/5] Update build.yml --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 820149a9..b1215542 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,14 +2,17 @@ name: App Builder on: push: - branches: [ master ] + branches: [ master, main ] paths-ignore: - '**.md' - '**.yml' pull_request: - branches: [ master ] + branches: [ master, main ] paths-ignore: - '**.md' + release: + types: [published] + workflow_dispatch: env: REGISTRY: ghcr.io From 1c61a69082cca849a85c5b3733c409833c330c3f Mon Sep 17 00:00:00 2001 From: Bilal <58775189+raobilal28@users.noreply.github.com> Date: Thu, 10 Oct 2024 18:49:34 +0500 Subject: [PATCH 5/5] Update build.yml --- .github/workflows/build.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1215542..91347abb 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,9 +10,6 @@ on: branches: [ master, main ] paths-ignore: - '**.md' - release: - types: [published] - workflow_dispatch: env: REGISTRY: ghcr.io @@ -82,7 +79,7 @@ jobs: uses: danielmundi/upload-packagecloud@v1 with: PACKAGE-NAME: homer-app-${{ env.TAG_NAME }}-amd64.deb - PACKAGECLOUD-REPO: siptest + PACKAGECLOUD-REPO: sipcapture PACKAGECLOUD-DISTRIB: any/any PACKAGECLOUD-USERNAME: ${{ secrets.PACKAGECLOUD_USERNAME }} PACKAGECLOUD-TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} @@ -93,11 +90,12 @@ jobs: uses: danielmundi/upload-packagecloud@v1 with: PACKAGE-NAME: homer-app-${{ env.TAG_NAME }}-amd64.rpm - PACKAGECLOUD-REPO: siptest + 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