Skip to content

Commit

Permalink
changed jf cli to multiline
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszSki committed Dec 4, 2024
1 parent 8231ee4 commit e3f7f21
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ jobs:
uses: jfrog/setup-jfrog-cli@v4
with:
version: latest
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:
Expand All @@ -200,5 +198,13 @@ jobs:
run: |
asset=$(gh api /repos/netfoundry/zfw-zet/releases --jq '( last ((.[].assets | sort_by(.created_at)).[] | select(.name | endswith("${{ 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")"
jf rt upload ./${{ env.APP_NAME }}_${{ needs.build_amd64_release.outputs.version }}_${{ matrix.goarch }}.${{ matrix.pkg_type }} netfoundry-deb-stable/pool/${{ env.APP_NAME }}/${{ matrix.distro_name }}/${{ matrix.goarch }}/ --url https://netfoundry.jfrog.io/artifactory/ --deb=${{ matrix.distro_name }}/main/${{ matrix.goarch }} --recursive=false --flat=true
jf rt upload \
./${{ env.APP_NAME }}_${{ needs.build_amd64_release.outputs.version }}_${{ matrix.goarch }}.${{ matrix.pkg_type }} \
netfoundry-deb-stable/pool/${{ env.APP_NAME }}/${{ 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
2 changes: 1 addition & 1 deletion files/config.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.0.6"
"version": "0.0.1"
}

0 comments on commit e3f7f21

Please sign in to comment.