You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ Refer to the [`podman push`](http://docs.podman.io/en/latest/markdown/podman-man
37
37
<aid="image-tag-inputs"></a>
38
38
39
39
### Image, Tag and Registry Inputs
40
+
40
41
The **push-to-registry**`image` and `tag` input work very similarly to [**buildah-build**](https://github.com/redhat-actions/buildah-build#image-tag-inputs).
41
42
42
43
However, when using **push-to-registry** when the `tags` input are not fully qualified, the `registry` input must also be set.
@@ -46,20 +47,24 @@ So, for **push-to-registry** the options are as follows:
46
47
**Option 1**: Provide `registry`, `image`, and `tags` inputs. The image(s) will be pushed to `${registry}/${image}:${tag}`.
47
48
48
49
For example:
50
+
49
51
```yaml
50
52
registry: quay.io/my-namespace
51
53
image: my-image
52
54
tags: v1 v1.0.0
53
55
```
56
+
54
57
will push the image tags: `quay.io/my-namespace/my-image:v1` and `quay.io/my-namespace/my-image:v1.0.0`.
55
58
56
59
**Option 2**: Provide only the `tags` input, including the fully qualified image name in each tag. In this case, the `registry` and `image` inputs are ignored.
@@ -144,13 +150,15 @@ If the image to push is present in both the Docker and Podman image storage, the
144
150
If the action pulled an image from the Docker image storage into the Podman storage, it will be cleaned up from the Podman storage before the action exits.
145
151
146
152
## Note about GitHub runners and Podman
153
+
147
154
We recommend using `runs-on: ubuntu-20.04` since it has a newer version of Podman.
148
155
149
156
If you are on `ubuntu-18.04` or any other older versions of ubuntu your workflow will use an older version of Podman and may encounter issues such as [#26](https://github.com/redhat-actions/push-to-registry/issues/26).
150
157
151
158
## Troubleshooting
159
+
152
160
Note that quay.io repositories are private by default.<br>
153
161
154
162
This means that if you push an image for the first time, you will have to authenticate before pulling it, or go to the repository's settings and change its visibility.
155
163
156
-
Simiarly, if you receive a 403 Forbidden from GHCR, you may have to update the Package Settings. Refer to [this issue](https://github.com/redhat-actions/push-to-registry/issues/52).
164
+
Similarly, if you receive a 403 Forbidden from GHCR, you may have to update the Package Settings. Refer to [this issue](https://github.com/redhat-actions/push-to-registry/issues/52).
0 commit comments