Skip to content

Commit

Permalink
chore: refine how bundles are published to require fewer inputs (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
Racer159 authored Dec 13, 2024
1 parent a192e5e commit 9b9f7c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ tasks:
default: bundle
version:
description: The version of the bundle to publish
required: true
default: ${BUNDLE_VERSION}
architecture:
description: The architecture of the bundle to publish
default: ${UDS_ARCH}
Expand All @@ -136,6 +136,10 @@ tasks:
cmd: cat ${{ .inputs.path }}/uds-bundle.yaml | ./uds zarf tools yq .metadata.name
setVariables:
- name: BUNDLE_NAME
- description: Get the current UDS Bundle version
cmd: cat ${{ .inputs.path }}/uds-bundle.yaml | ./uds zarf tools yq .metadata.version
setVariables:
- name: BUNDLE_VERSION
- description: Publish bundle for the supplied architecture
cmd: |
./uds publish "${{ .inputs.path }}/uds-bundle-${{ .inputs.name }}-${{ .inputs.architecture }}-${{ .inputs.version }}.tar.zst" "oci://${TARGET_REPO}/bundles" --no-progress

0 comments on commit 9b9f7c0

Please sign in to comment.