Skip to content

Instantly share code, notes, and snippets.

@andmos
Created April 27, 2021 12:17
Show Gist options
  • Save andmos/4c3db2e7455d0a071bd0d9e563d0ad79 to your computer and use it in GitHub Desktop.
Save andmos/4c3db2e7455d0a071bd0d9e563d0ad79 to your computer and use it in GitHub Desktop.
Run redhat-actions/s2i-build@v2
with:
path_context: target/
builder_image: registry.access.redhat.com/fuse7/fuse-java-openshift:1.2
image: ip-avgivelser
tags: 2.0.0-145 c46659f
log_level: 1
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/domstolene
OUTPUT_IMAGE: ip-avgivelser
IMAGE_SHA_TAG: c46659f
/usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/96320e1f-4c3a-4d89-b56f-db780537bca3 -f /home/runner/work/_temp/61a1684f-be52-49dd-809c-902c17eb106b
/home/runner/work/_temp/96320e1f-4c3a-4d89-b56f-db780537bca3/s2i build target/ registry.access.redhat.com/fuse7/fuse-java-openshift:1.2 ip-avgivelser:2.0.0-145 --loglevel 1
Running S2I version "v1.3.1"
Image "registry.access.redhat.com/fuse7/fuse-java-openshift:1.2" not available locally, pulling ...
Preparing to build ip-avgivelser:2.0.0-145
Copying sources from "target/" to "/tmp/s2i310006005/upload/src"
Clean build will be performed
Running "assemble" in "ip-avgivelser:2.0.0-145"
==================================================================
Starting S2I Java Build .....
S2I source build with plain binaries detected
Copying binaries from /tmp/src to /deployments ...
Checking for fat jar archive...
Found ip-avgivelser-2.0.0.jar...
... done
Build completed successfully
Tagging the built image with tags 2.0.0-145 and c46659f
/usr/bin/docker tag ip-avgivelser:2.0.0-145 ip-avgivelser:c46659f
32s
Run redhat-actions/push-to-registry@v2
with:
image: ip-avgivelser
tags: 2.0.0-145 c46659f
registry: ghcr.io/domstolene
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/domstolene
OUTPUT_IMAGE: ip-avgivelser
IMAGE_SHA_TAG: c46659f
🔍 Checking if "ip-avgivelser" with tags "2.0.0-145, c46659f" is present in Podman image storage
/usr/bin/podman version
/usr/bin/podman version
Version: 3.1.0
API Version: 3.1.0
Go Version: go1.15.2
Built: Thu Jan 1 00:00:00 1970
OS/Arch: linux/amd64
/usr/bin/podman image exists ip-avgivelser:2.0.0-145
/usr/bin/podman image exists ip-avgivelser:c46659f
🔍 Checking if "ip-avgivelser" with tags "2.0.0-145, c46659f" is present in Docker image storage
/usr/bin/podman pull docker-daemon:ip-avgivelser:2.0.0-145
/usr/bin/podman pull docker-daemon:ip-avgivelser:2.0.0-145
Getting image source signatures
Copying blob sha256:5759fd667180756b6951ba241bd6c8f348e386a95bdd00809a8e5542c2c638b4
Copying blob sha256:fb15b60ae93220334096891a970266fad8dbd924c154310edefdb87e20ccc272
Copying blob sha256:050c734bd2868bcd3b69ab0ca033aa3bc95a00a4a1e5317e732394e1c36ef59e
Copying blob sha256:c919f00c19ddd9f4ba2a1cf1d0e26cd1c3b0babc2f85cb4dbb646f01b43dd374
Copying blob sha256:4fa07caa9dc14bebc49deaaefc81844c428082cd352bb6eea3244c0ee541c937
Copying blob sha256:9bbc657f4fb00461e2754fbfc8e11a15ed24c9055e14902c2a18fbc0989f0e8e
Copying config sha256:d2d74eeeb2ca92c5155aab5a81882ca605852af13bbaa4835ac9acbde8b80c5f
Writing manifest to image destination
Storing signatures
Error processing tar file(exit status 1): operation not permitted
Error: 1 error occurred:
* Error committing the finished image: error adding layer with blob "sha256:4fa07caa9dc14bebc49deaaefc81844c428082cd352bb6eea3244c0ee541c937": Error processing tar file(exit status 1): operation not permitted
/usr/bin/podman pull docker-daemon:ip-avgivelser:c46659f
/usr/bin/podman pull docker-daemon:ip-avgivelser:c46659f
Getting image source signatures
Copying blob sha256:5759fd667180756b6951ba241bd6c8f348e386a95bdd00809a8e5542c2c638b4
Copying blob sha256:fb15b60ae93220334096891a970266fad8dbd924c154310edefdb87e20ccc272
Copying blob sha256:050c734bd2868bcd3b69ab0ca033aa3bc95a00a4a1e5317e732394e1c36ef59e
Copying blob sha256:c919f00c19ddd9f4ba2a1cf1d0e26cd1c3b0babc2f85cb4dbb646f01b43dd374
Copying blob sha256:4fa07caa9dc14bebc49deaaefc81844c428082cd352bb6eea3244c0ee541c937
Copying blob sha256:9bbc657f4fb00461e2754fbfc8e11a15ed24c9055e14902c2a18fbc0989f0e8e
Copying config sha256:d2d74eeeb2ca92c5155aab5a81882ca605852af13bbaa4835ac9acbde8b80c5f
Writing manifest to image destination
Storing signatures
Error processing tar file(exit status 1): operation not permitted
Error: 1 error occurred:
* Error committing the finished image: error adding layer with blob "sha256:4fa07caa9dc14bebc49deaaefc81844c428082cd352bb6eea3244c0ee541c937": Error processing tar file(exit status 1): operation not permitted
Error: ❌ All tags for "ip-avgivelser" were not found in either Podman image storage, or Docker image storage. Tags "2.0.0-145, c46659f" not found in Podman image storage, and tags "2.0.0-145, c46659f" not found in Docker image storage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment