|
4 | 4 | options: |
5 | 5 | description: For setting deploy time variables and flags |
6 | 6 | path: |
7 | | - description: Path of built zarf package to deploy |
| 7 | + description: Path relative to the repositories root where the zarf.yaml and .tar.zst lives |
8 | 8 | default: . |
9 | 9 | actions: |
| 10 | + - description: Get the current Zarf package name |
| 11 | + cmd: cat ${{ .inputs.path }}/zarf.yaml | yq .metadata.name |
| 12 | + setVariables: |
| 13 | + - name: PACKAGE_NAME |
| 14 | + - description: Get the current Zarf package version |
| 15 | + cmd: cat ${{ .inputs.path }}/zarf.yaml | yq .metadata.version |
| 16 | + setVariables: |
| 17 | + - name: PACKAGE_VERSION |
10 | 18 | - description: Deploy the UDS Zarf Package |
11 | | - cmd: ./uds zarf package deploy ${{ .inputs.path }}/zarf-package-*-${UDS_ARCH}-*.tar.zst --confirm --no-progress ${{ .inputs.options }} |
| 19 | + cmd: ./uds zarf package deploy ${{ .inputs.path }}/zarf-package-${PACKAGE_NAME}-${UDS_ARCH}-${PACKAGE_VERSION}.tar.zst --confirm --no-progress ${{ .inputs.options }} |
12 | 20 |
|
13 | 21 | - name: test-bundle |
14 | 22 | inputs: |
15 | 23 | path: |
16 | | - description: Path relative to the repositories root where the uds-bundle.yaml lives |
| 24 | + description: Path relative to the repositories root where the uds-bundle.yaml and .tar.zst lives |
17 | 25 | default: bundle |
18 | 26 | config: |
19 | 27 | description: File name of the bundle config file. Defaults to uds-config.yaml. Path is relative to the path input. |
20 | 28 | default: uds-config.yaml |
21 | 29 | options: |
22 | 30 | description: For setting deploy time variables and flags |
23 | 31 | actions: |
| 32 | + - description: Get the current UDS Bundle name |
| 33 | + cmd: cat ${{ .inputs.path }}/uds-bundle.yaml | yq .metadata.name |
| 34 | + setVariables: |
| 35 | + - name: BUNDLE_NAME |
| 36 | + - description: Get the current UDS Bundle version |
| 37 | + cmd: cat ${{ .inputs.path }}/uds-bundle.yaml | yq .metadata.version |
| 38 | + setVariables: |
| 39 | + - name: BUNDLE_VERSION |
24 | 40 | - description: Deploy the UDS bundle with the package and its dependencies |
25 | | - cmd: UDS_CONFIG=${{ .inputs.path }}/${{ .inputs.config }} ./uds deploy ${{ .inputs.path }}/uds-bundle-*-${UDS_ARCH}-*.tar.zst --confirm --no-progress ${{ .inputs.options }} --no-tea |
| 41 | + cmd: UDS_CONFIG=${{ .inputs.path }}/${{ .inputs.config }} ./uds deploy ${{ .inputs.path }}/uds-bundle-${BUNDLE_NAME}-${UDS_ARCH}-${BUNDLE_VERSION}.tar.zst --confirm --no-progress ${{ .inputs.options }} --no-tea |
0 commit comments