mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-04-29 18:19:53 +02:00
Add digestfile argument, input, and output
Signed-off-by: Tim Etchells <tetchell@redhat.com>
This commit is contained in:
parent
f89a81fade
commit
2d063fde99
5 changed files with 45 additions and 11 deletions
11
.github/workflows/verify-push.yaml
vendored
11
.github/workflows/verify-push.yaml
vendored
|
@ -2,7 +2,7 @@
|
|||
# is some change in code done to ensure that the changes
|
||||
# are not buggy and we are getting the desired output.
|
||||
name: Test Push
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
on: [ push, pull_request, workflow_dispatch ]
|
||||
env:
|
||||
IMAGE_NAME: hello-world
|
||||
IMAGE_REGISTRY: quay.io
|
||||
|
@ -11,7 +11,7 @@ env:
|
|||
jobs:
|
||||
build:
|
||||
name: Push image to Quay.io
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
# Checkout push-to-registry action github repository
|
||||
- name: Checkout Push to Registry action
|
||||
|
@ -24,9 +24,16 @@ jobs:
|
|||
# Push the image to image registry
|
||||
- name: Push To Quay
|
||||
uses: ./
|
||||
id: push
|
||||
with:
|
||||
image: ${{ env.IMAGE_NAME }}
|
||||
tag: ${{ env.IMAGE_TAG }}
|
||||
registry: ${{ env.IMAGE_REGISTRY }}/${{ secrets.REGISTRY_USER }}
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
|
||||
- name: Echo outputs
|
||||
run: |
|
||||
echo "registry-path ${{ steps.push.outputs.registry-path }}"
|
||||
echo "digest ${{ steps.push.outputs.digest }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue