-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #306 from bilalrao12/master
Update release-alpine.yml
- Loading branch information
Showing
1 changed file
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,41 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
args: 'heplify*' | ||
|
||
- 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: ${{ matrix.arch != 'aarch64' && steps.checkpackagecloud.outputs.secretspresent == 'true' }} | ||
uses: danielmundi/upload-packagecloud@v1 | ||
with: | ||
PACKAGE-NAME: heplify-*-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: ${{ matrix.arch != 'aarch64' && steps.checkpackagecloud.outputs.secretspresent == 'true' }} | ||
uses: danielmundi/upload-packagecloud@v1 | ||
with: | ||
PACKAGE-NAME: heplify-*-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-ghcr-push: | ||
if: ${{ github.event_name != 'workflow_dispatch' }} | ||
|
@@ -110,9 +145,22 @@ jobs: | |
contents: read | ||
|
||
steps: | ||
- name: Check Docker secret presence | ||
id: checkdocker | ||
shell: bash | ||
run: | | ||
if [ "$SECRET" == "" ] || [ "$USERNAME" == "" ]; then | ||
echo "secretspresent=false" >> $GITHUB_OUTPUT | ||
else | ||
echo "secretspresent=true" >> $GITHUB_OUTPUT | ||
fi | ||
env: | ||
SECRET: ${{ secrets.DOCKERHUB_TOKEN }} | ||
USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
|
||
- uses: actions/checkout@v4 | ||
- name: Login to DockerHub | ||
if: ${{ steps.checkdocker.outputs.secretspresent }} | ||
if: ${{ steps.checkdocker.outputs.secretspresent == 'true' }} | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
|