Skip to content

Commit

Permalink
upload to release
Browse files Browse the repository at this point in the history
  • Loading branch information
sorinvoicu committed Mar 1, 2024
1 parent 3294f10 commit 814e61f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ jobs:
- name: Generate image manifest and R package list 🛞
run: |
docker manifest inspect ${{ steps.build-release.outputs.TAGGED_IMAGE }} > ${{ github.workspace }}/manifest.json
docker run -v ${{ github.workspace }}:/app ${{ steps.build-release.outputs.TAGGED_IMAGE }} \
R -q -e 'write.csv(installed.packages(), file="/app/package_list.csv")'
docker run -v ${PWD}:/app ${{ steps.build-release.outputs.TAGGED_IMAGE }} \
R -q -e 'write.csv(installed.packages(), file="/app/package_list.csv")'
# - name: Generate SBOM 📃
# uses: anchore/sbom-action@v0
Expand All @@ -163,6 +163,12 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: no
tag_name: ${{ needs.build_publish.outputs.tag }}
files: |
"${{ github.workspace }}/manifest.json"
"${{ github.workspace }}/package_list.csv"

- name: Upload R package list to release 🔼
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "package_list.csv"
asset_name: "package.list.${{ needs.build_publish.outputs.image }}.csv"
tag: "${{ needs.build_publish.outputs.tag }}"
overwrite: true

0 comments on commit 814e61f

Please sign in to comment.