-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description Adds the `unicorn` flavor upgrade test. To make the `latest-package-release` lookup from the correct repository (`/private` if `unicorn`) I added a utils task. I also modified the publish to use this same utils task for consistency. Tested publish workflow changes on fork (excluded create, so expected failures but output shows the correct repositories and zarf packages being referenced): - Snapshot: https://github.com/BagelLab/uds-core/actions/runs/9981790347 - Normal: https://github.com/BagelLab/uds-core/actions/runs/9981855590 ## Related Issue Fixes #577 ## Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [x] Other (security config, docs update, etc) ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide](https://github.com/defenseunicorns/uds-template-capability/blob/main/CONTRIBUTING.md) followed
- Loading branch information
Showing
5 changed files
with
47 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
variables: | ||
- name: BASE_REPO | ||
default: "ghcr.io/defenseunicorns/packages" | ||
- name: FLAVOR | ||
default: "upstream" | ||
- name: SNAPSHOT | ||
description: Whether this is a snapshot release | ||
default: "false" | ||
|
||
tasks: | ||
- name: determine-repo | ||
actions: | ||
- description: "Determine repository for the given flavor/type of release" | ||
cmd: | | ||
repo="${BASE_REPO}" | ||
# unicorn flavor = private repository | ||
if [ "${FLAVOR}" = "unicorn" ]; then | ||
repo="${repo}/private" | ||
fi | ||
repo="${repo}/uds" | ||
# snapshots = snapshot repository | ||
if [ "${SNAPSHOT}" = "true" ]; then | ||
repo="${repo}/snapshots" | ||
fi | ||
echo "${repo}" | ||
mute: true | ||
setVariables: | ||
- name: TARGET_REPO |