1
+ includes :
2
+ - utils : https://raw.githubusercontent.com/defenseunicorns/uds-common/7d5f445a50b19e97b9a8bed0d2445654ae05bab6/tasks/utils.yaml
3
+
1
4
variables :
2
5
- name : FLAVOR
3
6
default : upstream
4
- - name : TARGET_REPO
5
- default : ghcr.io/defenseunicorns/packages/uds
6
7
7
8
tasks :
8
9
- name : latest-package-release
@@ -13,20 +14,23 @@ tasks:
13
14
spoof_release :
14
15
description : Whether to spoof the pulled package version to the current repo version
15
16
default : " false"
16
- target_repo :
17
- description : The repository to pull from
18
- default : ghcr.io/defenseunicorns/packages/ uds
17
+ team :
18
+ description : The team you want to pull the package from
19
+ default : uds
19
20
actions :
21
+ - task : utils:determine-repo
22
+ with :
23
+ team : ${{.inputs.team}}
20
24
- description : Get the current Zarf package name
21
25
cmd : cat ${{ .inputs.path }}/zarf.yaml | yq .metadata.name
22
26
setVariables :
23
27
- name : PACKAGE_NAME
24
28
- description : Get latest tag version from OCI
25
- cmd : ./uds zarf tools registry ls ${{ .inputs.target_repo } }/${PACKAGE_NAME} | grep ${FLAVOR} | sort -V | tail -1
29
+ cmd : ./uds zarf tools registry ls ${TARGET_REPO }/${PACKAGE_NAME} | grep ${FLAVOR} | sort -V | tail -1
26
30
setVariables :
27
31
- name : LATEST_VERSION
28
32
- description : Pull the latest package release
29
- cmd : ./uds zarf package pull oci://${{ .inputs.target_repo } }/${PACKAGE_NAME}:${LATEST_VERSION} --no-progress -o ${{ .inputs.path }}
33
+ cmd : ./uds zarf package pull oci://${TARGET_REPO }/${PACKAGE_NAME}:${LATEST_VERSION} --no-progress -o ${{ .inputs.path }}
30
34
# TODO (@WSTARR): This is currently needed to get around the chicken+egg condition when release please updates the version in GH
31
35
- description : Spoof the latest release to the current version
32
36
cmd : |
@@ -47,16 +51,17 @@ tasks:
47
51
description : The repository to pull from
48
52
default : ghcr.io/defenseunicorns/packages/uds/bundles
49
53
actions :
54
+ - task : utils:determine-repo
50
55
- description : Get the current uds bundle name
51
56
cmd : cat ${{ .inputs.path }}/uds-bundle.yaml | yq .metadata.name
52
57
setVariables :
53
58
- name : BUNDLE_NAME
54
59
- description : Get latest tag version from OCI
55
- cmd : ./uds zarf tools registry ls ${{ .inputs.target_repo }} /${BUNDLE_NAME} | sort -V | tail -1
60
+ cmd : ./uds zarf tools registry ls ${TARGET_REPO}/bundles /${BUNDLE_NAME} | sort -V | tail -1
56
61
setVariables :
57
62
- name : LATEST_VERSION
58
63
- description : Pull the latest bundle release
59
- cmd : ./uds pull oci://${{ .inputs.target_repo }} /${BUNDLE_NAME}:${LATEST_VERSION} --no-progress -o ${{ .inputs.path }}
64
+ cmd : ./uds pull oci://${TARGET_REPO}/bundles /${BUNDLE_NAME}:${LATEST_VERSION} --no-progress -o ${{ .inputs.path }}
60
65
# TODO (@ZMILLER): This is currently needed to get around the chicken+egg condition when release please updates the version in GH
61
66
- description : Spoof the latest release to the current version
62
67
cmd : |
0 commit comments