Skip to content

Instantly share code, notes, and snippets.

@andmos
Created April 21, 2021 17:54
Show Gist options
  • Save andmos/61aa36d22c657995030fa965788b5950 to your computer and use it in GitHub Desktop.
Save andmos/61aa36d22c657995030fa965788b5950 to your computer and use it in GitHub Desktop.
Run redhat-actions/push-to-registry@main
with:
image: domstolene/ip-avgivelser
tags: 2.0.0-134 7e59f9c
registry: ghcr.io
username: domstolene
password: ***
tls-verify: true
env:
APP_NAME: ip-avgivelser
JAR_NAME: ip-avgivelser-2.0.0.jar
VERSION: 2.0.0
IMAGE_TAG: test
JAR_TARGET_FOLDER: target/
BASE_IMAGE: registry.access.redhat.com/fuse7/fuse-java-openshift:1.2
IMAGE_PUSH_REPOSITORY: ghcr.io
OUTPUT_IMAGE: domstolene/ip-avgivelser
IMAGE_SHA_TAG: 7e59f9c
Checking if "domstolene/ip-avgivelser" with tags "2.0.0-134, 7e59f9c" is present in Podman image storage
/usr/bin/podman version
/usr/bin/podman version
Version: 3.0.1
API Version: 3.0.0
Go Version: go1.15.2
Built: Thu Jan 1 00:00:00 1970
OS/Arch: linux/amd64
/usr/bin/podman image exists domstolene/ip-avgivelser:2.0.0-134
/usr/bin/podman image exists domstolene/ip-avgivelser:7e59f9c
Checking if "domstolene/ip-avgivelser" with tags "2.0.0-134, 7e59f9c" is present in Docker image storage
/usr/bin/podman pull docker-daemon:domstolene/ip-avgivelser:2.0.0-134
/usr/bin/podman pull docker-daemon:domstolene/ip-avgivelser:2.0.0-134
Getting image source signatures
Copying blob sha256:fb15b60ae93220334096891a970266fad8dbd924c154310edefdb87e20ccc272
Copying blob sha256:050c734bd2868bcd3b69ab0ca033aa3bc95a00a4a1e5317e732394e1c36ef59e
Copying blob sha256:2af208e5ee9271bfe136ed87cd678e43f9ae01393a00e370d82f882e70117f60
Copying blob sha256:c919f00c19ddd9f4ba2a1cf1d0e26cd1c3b0babc2f85cb4dbb646f01b43dd374
Copying blob sha256:4fa07caa9dc14bebc49deaaefc81844c428082cd352bb6eea3244c0ee541c937
Copying blob sha256:9bbc657f4fb00461e2754fbfc8e11a15ed24c9055e14902c2a18fbc0989f0e8e
Copying config sha256:992c44d4b0bc9583ea381cc698375e628ca659371974040b60dead07720264dc
Writing manifest to image destination
Storing signatures
992c44d4b0bc9583ea381cc698375e628ca659371974040b60dead07720264dc
/usr/bin/podman pull docker-daemon:domstolene/ip-avgivelser:7e59f9c
/usr/bin/podman pull docker-daemon:domstolene/ip-avgivelser:7e59f9c
Getting image source signatures
Copying blob sha256:2af208e5ee9271bfe136ed87cd678e43f9ae01393a00e370d82f882e70117f60
Copying blob sha256:fb15b60ae93220334096891a970266fad8dbd924c154310edefdb87e20ccc272
Copying blob sha256:050c734bd2868bcd3b69ab0ca033aa3bc95a00a4a1e5317e732394e1c36ef59e
Copying blob sha256:c919f00c19ddd9f4ba2a1cf1d0e26cd1c3b0babc2f85cb4dbb646f01b43dd374
Copying blob sha256:4fa07caa9dc14bebc49deaaefc81844c428082cd352bb6eea3244c0ee541c937
Copying blob sha256:9bbc657f4fb00461e2754fbfc8e11a15ed24c9055e14902c2a18fbc0989f0e8e
Copying config sha256:992c44d4b0bc9583ea381cc698375e628ca659371974040b60dead07720264dc
Writing manifest to image destination
Storing signatures
992c44d4b0bc9583ea381cc698375e628ca659371974040b60dead07720264dc
Tags "2.0.0-134, 7e59f9c" of "domstolene/ip-avgivelser" found in Docker image storage
"docker.io/library/domstolene/ip-avgivelser" was found in the Docker image storage, but not in the Podman image storage. The image(s) will be pulled into Podman image storage, pushed, and then removed from the Podman image storage.
Pushing "docker.io/library/domstolene/ip-avgivelser" with tags "2.0.0-134, 7e59f9c" to "ghcr.io" as "domstolene"
/usr/bin/podman push --quiet --digestfile docker.io-library-domstolene-ip-avgivelser-2.0.0-134_digest.txt docker.io/library/domstolene/ip-avgivelser:2.0.0-134 ghcr.io/domstolene/ip-avgivelser:2.0.0-134 --tls-verify=true --creds=domstolene:***
Error: unable to find 'docker.io/library/domstolene/ip-avgivelser:2.0.0-134' in local storage: no such image
Error: Error: podman exited with code 125
Error: unable to find 'docker.io/library/domstolene/ip-avgivelser:2.0.0-134' in local storage: no such image
Removing "docker.io/library/domstolene/ip-avgivelser" from the Podman image storage
/usr/bin/podman rmi docker.io/library/domstolene/ip-avgivelser:2.0.0-134
Error: 1 error occurred:
* unable to find 'docker.io/library/domstolene/ip-avgivelser:2.0.0-134' in local storage: no such image
(node:1853) UnhandledPromiseRejectionWarning: Error: podman exited with code 1
Error: 1 error occurred:
* unable to find 'docker.io/library/domstolene/ip-avgivelser:2.0.0-134' in local storage: no such image
at exitCode (/home/runner/work/_actions/redhat-actions/push-to-registry/main/webpack:/push-to-registry/src/index.ts:369:1)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at tag (/home/runner/work/_actions/redhat-actions/push-to-registry/main/webpack:/push-to-registry/src/index.ts:331:1)
(node:1853) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1853) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment