Browse Source

workflow/pipeline: export built container image as artifact in oci format

Fabian Peter Hammerle 1 year ago
parent
commit
83f85494b2
1 changed files with 12 additions and 0 deletions
  1. 12 0
      .github/workflows/container-image.yml

+ 12 - 0
.github/workflows/container-image.yml

@@ -22,3 +22,15 @@ jobs:
         platforms: |
           linux/amd64
           linux/arm/v7
+        # > $ skopeo copy --all oci-archive:oci-container-image.tar \
+        # >     docker://quay.io/fphammerle/test:test
+        # > [...]
+        # > FATA[0056] Error creating an updated image manifest: Error preparing
+        # . updated manifest, layer "sha256:[...]": unsupported MIME type for
+        # . compression: application/vnd.in-toto+json
+        provenance: false
+        # https://docs.docker.com/engine/reference/commandline/buildx_build/#output
+        # https://github.com/opencontainers/image-spec
+        outputs: type=oci,dest=oci-container-image.tar
+    - uses: actions/upload-artifact@v3.1.2
+      with: {path: oci-container-image.tar}