From 0dff01078e38b7ee2ff49cb1ea6705d7c8c0610d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=AA=E3=81=A4=E3=81=8D?= Date: Mon, 11 Oct 2021 02:19:11 -0700 Subject: [PATCH] Add example for FQIN output tags --- README.md | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3ed1b56..ba482f7 100644 --- a/README.md +++ b/README.md @@ -60,13 +60,26 @@ After building your image, use [push-to-registry](https://github.com/redhat-acti ## Action Outputs `image`: The name of the built image.
-For example, `spring-image`. - `tags`: A list of the tags that were created, separated by spaces.
-For example, `latest ${{ github.sha }}`. - `image-with-tag`: The name of the image tagged with the first tag present.
-For example, `spring-image:latest` + +For example: + +``` yml +image: "spring-image" +tags: "latest ${{ github.sha }}" +image-with-tag: "spring-image:latest" +``` + +When input `tags` are provided in FQIN form, output `image` will be an empty, and output `tags` and `image-with-tag` will be both in FQIN form. + +For example: + +``` yml +image: "" +tags: "quay.io/podman/stable:latest quay.io/containers/podman:latest" +image-with-tag: "quay.io/podman/stable:latest" +```