-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixes bad media type when using create -o with GHCR (#317)
- Loading branch information
Showing
7 changed files
with
73 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env sh | ||
|
||
# script to push the UDS bundle and Zarf artifacts that we use for testing GHCR | ||
# ensure you have the proper creds and are logged in to GHCR for defenseunicorns | ||
|
||
set -e | ||
|
||
# create the nginx and podinfo Zarf packages | ||
cd ./../src/test/packages/nginx | ||
zarf package create -o oci://ghcr.io/defenseunicorns/uds-cli --confirm -a amd64 | ||
zarf package create -o oci://ghcr.io/defenseunicorns/uds-cli --confirm -a arm64 | ||
|
||
cd ../podinfo | ||
zarf package create -o oci://ghcr.io/defenseunicorns/uds-cli --confirm -a amd64 | ||
zarf package create -o oci://ghcr.io/defenseunicorns/uds-cli --confirm -a arm64 | ||
|
||
# create ghcr-test bundle | ||
cd ../../bundles/06-ghcr | ||
uds create . -o ghcr.io/defenseunicorns/packages/uds-cli/test/create-remote --confirm -a amd64 | ||
uds create . -o ghcr.io/defenseunicorns/packages/uds-cli/test/create-remote --confirm -a arm64 | ||
|
||
uds create . -o ghcr.io/defenseunicorns/packages/uds-cli/test/publish --confirm -a amd64 | ||
uds create . -o ghcr.io/defenseunicorns/packages/uds-cli/test/publish --confirm -a arm64 | ||
|
||
uds create . -o ghcr.io/defenseunicorns/packages/uds/bundles --confirm -a amd64 | ||
uds create . -o ghcr.io/defenseunicorns/packages/uds/bundles --confirm -a arm64 | ||
|
||
uds create . -o ghcr.io/defenseunicorns/packages/delivery --confirm -a amd64 | ||
uds create . -o ghcr.io/defenseunicorns/packages/delivery --confirm -a arm64 | ||
|
||
# change name of bundle for testing purposes | ||
sed -i'' -e 's/ghcr-test/ghcr-delivery-test/g' uds-bundle.yaml | ||
uds create . -o ghcr.io/defenseunicorns/packages/delivery --confirm -a amd64 | ||
uds create . -o ghcr.io/defenseunicorns/packages/delivery --confirm -a arm64 | ||
sed -i'' -e 's/ghcr-delivery-test/ghcr-test/g' uds-bundle.yaml | ||
|
||
echo "Finished pushing test artifacts to GHCR." |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
kind: UDSBundle | ||
metadata: | ||
name: ghcr-test | ||
description: building from local and remote Zarf pkgs | ||
description: testing a bundle of pkgs from ghcr | ||
version: 0.0.1 | ||
|
||
packages: | ||
- name: podinfo | ||
repository: ghcr.io/defenseunicorns/uds-cli/podinfo | ||
ref: 0.0.1 | ||
- name: nginx | ||
repository: ghcr.io/defenseunicorns/uds-cli/nginx | ||
ref: 0.0.1 | ||
- name: podinfo | ||
path: "../../packages/podinfo" | ||
ref: 0.0.1 |
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