mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-06-08 10:09:02 +00:00
Add digestfile argument, input, and output
Signed-off-by: Tim Etchells <tetchell@redhat.com>
This commit is contained in:
parent
889c4fd0f3
commit
6ebecdf706
5 changed files with 46 additions and 12 deletions
13
.github/workflows/verify-push.yaml
vendored
13
.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:
|
||||
# Fetch name of the Forked Repository with Branch
|
||||
# if workflow is triggered from pull request
|
||||
|
@ -42,12 +42,19 @@ jobs:
|
|||
- name: Pull Hello world image
|
||||
run: docker pull ${{ env.IMAGE_NAME }}
|
||||
|
||||
# Push the image to image registry
|
||||
# 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