Co-authored-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
---
.../publish-application-packages.yml | 3 -
.../tutorials/publish_and_deploy_deploy.html | 6 +-
.../tutorials/publish_and_deploy_inspect.html | 6 +-
.../tutorials/publish_and_deploy_publish.html | 16 +--
.../tutorials/publish_and_deploy_pull.html | 6 +-
.../troubleshoot_insecure_registry.html | 8 +-
.../100-cli-commands/zarf_package_pull.md | 10 +-
docs/3-create-a-zarf-package/4-zarf-schema.md | 16 +++
examples/package-flavors/zarf.yaml | 1 +
src/cmd/initialize.go | 4 +-
src/cmd/tools/zarf.go | 4 +-
src/config/lang/english.go | 12 +-
src/internal/packager/validate/validate.go | 5 -
src/pkg/oci/common.go | 115 ++++++++++++++----
src/pkg/oci/fetch.go | 19 ++-
src/pkg/oci/progress.go | 36 ++++++
src/pkg/oci/pull.go | 14 +++
src/pkg/oci/push.go | 101 +++++++++++++--
src/pkg/oci/utils.go | 43 ++-----
src/pkg/packager/common.go | 12 --
src/pkg/packager/composer/oci.go | 6 +-
src/pkg/packager/create_stages.go | 16 +--
src/pkg/packager/publish.go | 46 ++++---
src/pkg/packager/sources/new.go | 3 +-
src/pkg/packager/sources/new_test.go | 2 +-
src/pkg/packager/sources/oci.go | 3 +-
src/pkg/packager/yaml.go | 7 ++
src/test/e2e/10_component_flavor_test.go | 2 +-
src/test/e2e/50_oci_publish_deploy_test.go | 26 ++--
src/test/e2e/51_oci_compose_test.go | 8 +-
.../51-import-everything/inception/zarf.yaml | 10 +-
.../51-import-everything/oci-import/zarf.yaml | 2 +-
.../packages/51-import-everything/zarf.yaml | 2 +-
src/types/package.go | 1 +
zarf.schema.json | 4 +
35 files changed, 408 insertions(+), 167 deletions(-)
create mode 100644 src/pkg/oci/progress.go
diff --git a/.github/workflows/publish-application-packages.yml b/.github/workflows/publish-application-packages.yml
index e7979efc9b..6721bd8c46 100644
--- a/.github/workflows/publish-application-packages.yml
+++ b/.github/workflows/publish-application-packages.yml
@@ -44,9 +44,6 @@ jobs:
# Publish a skeleton of the dos-games package
zarf package publish examples/dos-games oci://ghcr.io/defenseunicorns/packages
-
- zarf tools registry copy ghcr.io/defenseunicorns/packages/dos-games:1.0.0-amd64 ghcr.io/defenseunicorns/packages/dos-games:1.0.0-x86_64
- zarf tools registry copy ghcr.io/defenseunicorns/packages/dos-games:1.0.0-arm64 ghcr.io/defenseunicorns/packages/dos-games:1.0.0-aarch64
env:
AWS_REGION: ${{ secrets.COSIGN_AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.COSIGN_AWS_KEY_ID }}
diff --git a/docs-website/static/docs/tutorials/publish_and_deploy_deploy.html b/docs-website/static/docs/tutorials/publish_and_deploy_deploy.html
index 011823eacd..6bec7c1c49 100644
--- a/docs-website/static/docs/tutorials/publish_and_deploy_deploy.html
+++ b/docs-website/static/docs/tutorials/publish_and_deploy_deploy.html
@@ -47,11 +47,11 @@
-$ zarf package deploy oci://$REPOSITORY_URL/helm-oci-chart:0.0.1-arm64
+$ zarf package deploy oci://$REPOSITORY_URL/helm-oci-chart:0.0.1
Saving log file to
/var/folders/bk/rz1xx2sd5zn134c0_j1s2n5r0000gp/T/zarf-2023-03-30-12-09-38-2083571763.log
- • Pulling Zarf package from $REPOSITORY_URL/helm-oci-chart:0.0.1-arm64
+ • Pulling Zarf package from $REPOSITORY_URL/helm-oci-chart:0.0.1
• Pulling Zarf package data (0.00 Byte of 26.90 MBs)
✔ d8399f7b56ca [application/vnd.unknown.config.v1+json]
✔ fd143c92d486 zarf.yaml
@@ -70,7 +70,7 @@
✔ 8c5b695f4724 images/blobs/sha256/8c5b695...014f94c8d4ea62772c477c1e03
✔ cf79ae90993d [application/vnd.oci.image.manifest.v1+json]
✔ Pulling Zarf package data (26.90 MBs)
- ✔ Pulled $REPOSITORY_URL/helm-oci-chart:0.0.1-arm64
+ ✔ Pulled $REPOSITORY_URL/helm-oci-chart:0.0.1
• Loading Zarf Package /var/folders/bk/rz1xx2sd5zn134c0_j1s2n5r0000gp/T/zarf-3635611772
• Loading Zarf Package /var/folders/bk/rz1xx2sd5zn134c0_j1s2n5r0000gp/T/zarf-3635611772
diff --git a/docs-website/static/docs/tutorials/publish_and_deploy_inspect.html b/docs-website/static/docs/tutorials/publish_and_deploy_inspect.html
index 7e80c7a128..e32ecd4d1d 100644
--- a/docs-website/static/docs/tutorials/publish_and_deploy_inspect.html
+++ b/docs-website/static/docs/tutorials/publish_and_deploy_inspect.html
@@ -47,12 +47,12 @@
-$ zarf package inspect oci://$REPOSITORY_URL/helm-oci-chart:0.0.1-arm64
+$ zarf package inspect oci://$REPOSITORY_URL/helm-oci-chart:0.0.1
Saving log file to
/var/folders/bk/rz1xx2sd5zn134c0_j1s2n5r0000gp/T/zarf-2023-03-30-13-13-29-2403571657.log
- • Loading Zarf Package oci://$REPOSITORY_URL/helm-oci-chart:0.0.1-arm64
- • Loaded Zarf Package oci://$REPOSITORY_URL/helm-oci-chart:0.0.1-arm64
+ • Loading Zarf Package oci://$REPOSITORY_URL/helm-oci-chart:0.0.1
+ • Loaded Zarf Package oci://$REPOSITORY_URL/helm-oci-chart:0.0.1
kind: ZarfPackageConfig
diff --git a/docs-website/static/docs/tutorials/publish_and_deploy_publish.html b/docs-website/static/docs/tutorials/publish_and_deploy_publish.html
index b2dc87096f..ee95783c43 100644
--- a/docs-website/static/docs/tutorials/publish_and_deploy_publish.html
+++ b/docs-website/static/docs/tutorials/publish_and_deploy_publish.html
@@ -56,15 +56,15 @@
- 📦 PACKAGE PUBLISH helm-oci-chart:0.0.1-arm64
+ 📦 PACKAGE PUBLISH helm-oci-chart:0.0.1
- • Publishing package to $REPOSITORY_URL/helm-oci-chart:0.0.1-arm64
+ • Publishing package to $REPOSITORY_URL/helm-oci-chart:0.0.1
•
• Prepared 14 layers
- • Publishing jvb/helm-oci-chart:0.0.1-arm64
+ • Publishing jvb/helm-oci-chart:0.0.1
✔ b66dbb27a733 images/oci-layout
✔ 515aceaacb8d images/index.json
✔ fd143c92d486 zarf.yaml
@@ -79,7 +79,7 @@
✔ b95c82728c36 images/blobs/sha256/b95c827...042a9c5d84426c1674044916d4
✔ e2b45cdcd8bf images/blobs/sha256/e2b45cd...000f1bc1695014e38821dc675c
✔ 42c097bd02de components/helm-oci-chart.tar
- • Publishing jvb/helm-oci-chart:0.0.1-arm64
+ • Publishing jvb/helm-oci-chart:0.0.1
✔ d8399f7b56ca [application/vnd.unknown.config.v1+json]
✔ 515aceaacb8d images/index.json
✔ b66dbb27a733 images/oci-layout
@@ -96,12 +96,12 @@
✔ ab67ffd6e92e images/blobs/sha256/ab67ffd...f8c9d93c0e719f6350e99d3aea
✔ e2b45cdcd8bf images/blobs/sha256/e2b45cd...000f1bc1695014e38821dc675c
✔ cf79ae90993d [application/vnd.oci.image.manifest.v1+json]
- ✔ Published $REPOSITORY_URL/helm-oci-chart:0.0.1-arm64 [application/vnd.oci.image.manifest.v1+json]
+ ✔ Published $REPOSITORY_URL/helm-oci-chart:0.0.1 [application/vnd.oci.image.manifest.v1+json]
• To inspect/deploy/pull:
- • zarf package inspect oci://$REPOSITORY_URL/helm-oci-chart:0.0.1-arm64 --insecure
- • zarf package deploy oci://$REPOSITORY_URL/helm-oci-chart:0.0.1-arm64 --insecure
- • zarf package pull oci://$REPOSITORY_URL/helm-oci-chart:0.0.1-arm64 --insecure
+ • zarf package inspect oci://$REPOSITORY_URL/helm-oci-chart:0.0.1 --insecure
+ • zarf package deploy oci://$REPOSITORY_URL/helm-oci-chart:0.0.1 --insecure
+ • zarf package pull oci://$REPOSITORY_URL/helm-oci-chart:0.0.1 --insecure