Skip to content

Commit

Permalink
fix: Uploader
Browse files Browse the repository at this point in the history
  • Loading branch information
cicdguy committed Jan 25, 2024
1 parent e2805fa commit 656af9d
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on:
description: R Version
required: true
type: choice
default: "4.3.0"
default: "4.3.2"
options:
- "4.1.0"
- "4.1.1"
Expand All @@ -49,7 +49,7 @@ on:
- "4.3.2"
- "latest"
latest_r_version:
description: R Version to be used as latest
description: "R Version to be aliased as the 'latest' tag"
required: false
type: string
default: "4.3.2"
Expand All @@ -67,7 +67,7 @@ on:
- "3.18"
- "devel"
latest_bioc_version:
description: BioC version to be used as latest
description: "BioC Version to be aliased as the 'latest' tag"
required: false
type: string
default: "3.18"
Expand All @@ -83,6 +83,8 @@ on:
release_tag:
description: |
Release tag to which SBOM generated for image should be attached.
Release tags follow the `YYYY.MM.DD` format.
This must be specified if you want to upload artifacts to the release.
required: false
default: ""

Expand Down Expand Up @@ -160,7 +162,7 @@ jobs:
docker-images: true

- name: Checkout repository 💳
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand All @@ -169,7 +171,7 @@ jobs:
install: true

- name: Cache Docker layers ♻️
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ needs.normalize-inputs.outputs.distribution }}-${{ needs.normalize-inputs.outputs.r_version }}-${{ needs.normalize-inputs.outputs.bioc_version }}
Expand Down Expand Up @@ -263,17 +265,19 @@ jobs:
output-file: "${{ steps.build_vars.outputs.SBOM_OUTPUT_FILENAME }}"
artifact-name: "sbom.spdx"

- name: Upload image manifest release 🔼
- name: Upload image manifest to release 🔼
uses: svenstaro/upload-release-action@v2
if: "${{ needs.normalize-inputs.outputs.release_tag }} != ''"
with:
repo_token: ${{ secrets.REPO_GITHUB_TOKEN }}
file: "manifest.json"
asset_name: "image.manifest.${{ steps.build_vars.outputs.OUTPUT_IMAGE_NAME }}.json"
tag: "${{ needs.normalize-inputs.outputs.release_tag }}"
overwrite: true

- name: Upload R package list 🔼
- name: Upload R package list to release 🔼
uses: svenstaro/upload-release-action@v2
if: "${{ needs.normalize-inputs.outputs.release_tag }} != ''"
with:
repo_token: ${{ secrets.REPO_GITHUB_TOKEN }}
file: "package_list.csv"
Expand All @@ -283,6 +287,7 @@ jobs:

- name: Upload SBOM to release 🔼
uses: svenstaro/upload-release-action@v2
if: "${{ needs.normalize-inputs.outputs.release_tag }} != ''"
with:
repo_token: ${{ secrets.REPO_GITHUB_TOKEN }}
file: "${{ steps.build_vars.outputs.SBOM_OUTPUT_FILENAME }}"
Expand Down

0 comments on commit 656af9d

Please sign in to comment.