mirror of
https://github.com/redhat-actions/push-to-registry.git
synced 2025-05-04 12:19:55 +02:00
Fix failure if image name has "/" in it's name and present in docker (#40)
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
c812c2069e
commit
5ec72be08b
4 changed files with 11 additions and 6 deletions
6
.github/workflows/multiple-build.yaml
vendored
6
.github/workflows/multiple-build.yaml
vendored
|
@ -49,7 +49,7 @@ jobs:
|
|||
|
||||
- name: Build image using Docker
|
||||
run: |
|
||||
docker build -t ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} -<<EOF
|
||||
docker build -t ${{ secrets.REGISTRY_USER }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} -<<EOF
|
||||
FROM busybox
|
||||
RUN echo "hello world"
|
||||
EOF
|
||||
|
@ -58,9 +58,9 @@ jobs:
|
|||
id: push
|
||||
uses: ./
|
||||
with:
|
||||
image: ${{ env.IMAGE_NAME }}
|
||||
image: ${{ secrets.REGISTRY_USER }}/${{ env.IMAGE_NAME }}
|
||||
tags: ${{ env.IMAGE_TAG }}
|
||||
registry: ${{ env.IMAGE_REGISTRY }}/${{ secrets.REGISTRY_USER }}
|
||||
registry: ${{ env.IMAGE_REGISTRY }}
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue