mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-08-06 16:50:53 +00:00
Fix indentation of an example
This commit is contained in:
parent
5ed88d269c
commit
18f0f2acd2
1 changed files with 22 additions and 22 deletions
44
README.md
44
README.md
|
@ -104,31 +104,31 @@ jobs:
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build Image
|
- name: Build Image
|
||||||
id: build-image
|
id: build-image
|
||||||
uses: redhat-actions/buildah-build@v2
|
uses: redhat-actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
image: my-app
|
image: my-app
|
||||||
tags: latest ${{ github.sha }}
|
tags: latest ${{ github.sha }}
|
||||||
containerfiles: |
|
containerfiles: |
|
||||||
./Containerfile
|
./Containerfile
|
||||||
|
|
||||||
# Podman Login action (https://github.com/redhat-actions/podman-login) also be used to log in,
|
# Podman Login action (https://github.com/redhat-actions/podman-login) also be used to log in,
|
||||||
# in which case 'username' and 'password' can be omitted.
|
# in which case 'username' and 'password' can be omitted.
|
||||||
- name: Push To quay.io
|
- name: Push To quay.io
|
||||||
id: push-to-quay
|
id: push-to-quay
|
||||||
uses: redhat-actions/push-to-registry@v2
|
uses: redhat-actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
image: ${{ steps.build-image.outputs.image }}
|
image: ${{ steps.build-image.outputs.image }}
|
||||||
tags: ${{ steps.build-image.outputs.tags }}
|
tags: ${{ steps.build-image.outputs.tags }}
|
||||||
registry: quay.io/quay-user
|
registry: quay.io/quay-user
|
||||||
username: quay-user
|
username: quay-user
|
||||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
- name: Print image url
|
- name: Print image url
|
||||||
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
|
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"
|
||||||
```
|
```
|
||||||
<!-- markdown-link-check-disable-next-line -->
|
<!-- markdown-link-check-disable-next-line -->
|
||||||
Refer to [GHCR push example](./.github/workflows/ghcr-push.yaml) for complete example of push to [GitHub Container Registry (GHCR)](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry).
|
Refer to [GHCR push example](./.github/workflows/ghcr-push.yaml) for complete example of push to [GitHub Container Registry (GHCR)](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue