8000 Merge pull request #340 from crazy-max/oci · docker/actions-toolkit@6a4479e · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a4479e

Browse files
authored
Merge pull request #340 from crazy-max/oci
oci: loadArchive to import an index from a tar archive image bundle
2 parents cd9f97a + 6fb52d2 commit 6a4479e

24 files changed

+646
-6
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/.yarn/releases/** binary
22
/.yarn/plugins/** binary
3+
/__tests__/fixtures/oci-archive/** binary

__tests__/fixtures/hello.Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
FROM busybox
17+
FROM busybox AS build
1818
ARG NAME=foo
1919
ARG TARGETPLATFORM
20-
RUN echo "Hello $NAME from $TARGETPLATFORM"
20+
RUN echo "Hello $NAME from $TARGETPLATFORM" > foo
21+
22+
FROM scratch
23+
COPY --from=build /foo /
902 KB
Binary file not shown.
4.35 KB
Binary file not shown.
7.79 KB
Binary file not shown.
56.1 KB
Binary file not shown.
8.5 KB
Binary file not shown.
23 KB
Binary file not shown.
8.5 KB
Binary file not shown.
8.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)
0