diff --git a/README.md b/README.md index 1250b8f..6c274ef 100644 --- a/README.md +++ b/README.md @@ -104,31 +104,31 @@ jobs: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Build Image - id: build-image - uses: redhat-actions/buildah-build@v2 - with: - image: my-app - tags: latest ${{ github.sha }} - containerfiles: | - ./Containerfile + - name: Build Image + id: build-image + uses: redhat-actions/buildah-build@v2 + with: + image: my-app + tags: latest ${{ github.sha }} + containerfiles: | + ./Containerfile - # 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. - - name: Push To quay.io - id: push-to-quay - uses: redhat-actions/push-to-registry@v2 - with: - image: ${{ steps.build-image.outputs.image }} - tags: ${{ steps.build-image.outputs.tags }} - registry: quay.io/quay-user - username: quay-user - password: ${{ secrets.REGISTRY_PASSWORD }} + # 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. + - name: Push To quay.io + id: push-to-quay + uses: redhat-actions/push-to-registry@v2 + with: + image: ${{ steps.build-image.outputs.image }} + tags: ${{ steps.build-image.outputs.tags }} + registry: quay.io/quay-user + username: quay-user + password: ${{ secrets.REGISTRY_PASSWORD }} - - name: Print image url - run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" + - name: Print image url + run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}" ``` 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).