Skip to content

Commit

Permalink
updated jfrog upload section
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszSki committed Dec 4, 2024
1 parent 14436fe commit 7f9238e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,22 +322,22 @@ jobs:
- name: Configure jFrog CLI
if: ${{ matrix.pkg_type == 'deb'}}
uses: jfrog/setup-jfrog-cli@v4
env:
JF_USER: ${{ secrets.JF_USER }}
JF_PASSWORD: ${{ secrets.JF_PASSWORD }}
- name: Upload DEB to Artifactory with jFrog CLI
if: ${{ matrix.pkg_type == 'deb'}}
env:
GH_TOKEN: ${{ github.token }}
JF_USER: ${{ secrets.JF_USER }}
JF_PASSWORD: ${{ secrets.JF_PASSWORD }}
shell: bash
run: |
asset=$(gh api /repos/netfoundry/zfw/releases --jq '( last ((.[].assets | sort_by(.created_at)).[] | select(.name=="${{ env.APP_NAME }}-router-${{ needs.build_amd64_release.outputs.version }}.${{ matrix.goarch }}.${{ matrix.pkg_type }}"))))')
curl -Ls "$(jq -r .browser_download_url <<< "$asset")" -H "Accept: application/vnd.github.v3+json" --output ./"$(jq -r .name <<< "$asset")"
ls -l ./
jf rt upload
./${{ env.APP_NAME }}-router-${{ needs.build_amd64_release.outputs.version }}.${{ matrix.goarch }}.${{ matrix.pkg_type }} /
netfoundry-deb-stable/pool/zfw-router/${{ matrix.distro_name }}/${{ matrix.goarch }} /
--deb=${{ matrix.distro_name }}/main/${{ matrix.goarch }} /
--url https://netfoundry.jfrog.io/artifactory/ /
--recursive=false /
--flat=true
./${{ env.APP_NAME }}-router-${{ needs.build_amd64_release.outputs.version }}.${{ matrix.goarch }}.${{ matrix.pkg_type }} \
netfoundry-deb-stable/pool/${{ env.APP_NAME }}-router/${{ matrix.distro_name }}/${{ matrix.goarch }}/ \
--url https://netfoundry.jfrog.io/artifactory/ \
--user ${{ secrets.JF_USER}} \
--password ${{ secrets.JF_PASSWORD }} \
--deb=${{ matrix.distro_name }}/main/${{ matrix.goarch }} \
--recursive=false \
--flat=true

0 comments on commit 7f9238e

Please sign in to comment.