Skip to content

Instantly share code, notes, and snippets.

@andmos
Created April 27, 2021 12:29
Show Gist options
  • Save andmos/811586109c8831d191b5db40dcde231b to your computer and use it in GitHub Desktop.
Save andmos/811586109c8831d191b5db40dcde231b 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-140 0329232
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: 0329232
/usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/d86db44e-f12b-493c-bd95-8c815c258b1c -f /home/runner/work/_temp/0d285cad-1a5f-46bc-b90f-214bce8f4c07
/home/runner/work/_temp/d86db44e-f12b-493c-bd95-8c815c258b1c/s2i build target/ registry.access.redhat.com/fuse7/fuse-java-openshift:1.2 ip-avgivelser:2.0.0-140 --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-140
Copying sources from "target/" to "/tmp/s2i003834391/upload/src"
Clean build will be performed
Running "assemble" in "ip-avgivelser:2.0.0-140"
==================================================================
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-140 and 0329232
/usr/bin/docker tag ip-avgivelser:2.0.0-140 ip-avgivelser:0329232
47s
Run redhat-actions/push-to-registry@main
with:
image: ip-avgivelser
tags: 2.0.0-140 0329232
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: 0329232
Checking if "ip-avgivelser" with tags "2.0.0-140, 0329232" 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 ip-avgivelser:2.0.0-140
/usr/bin/podman image exists ip-avgivelser:0329232
Checking if "ip-avgivelser" with tags "2.0.0-140, 0329232" is present in Docker image storage
/usr/bin/podman pull docker-daemon:ip-avgivelser:2.0.0-140
/usr/bin/podman pull docker-daemon:ip-avgivelser:2.0.0-140
Getting image source signatures
Copying blob sha256:c054d1261775ef8710c34de8a7504f9ec0b61f8b067e0c5379565b329486e7e1
Copying blob sha256:fb15b60ae93220334096891a970266fad8dbd924c154310edefdb87e20ccc272
Copying blob sha256:4fa07caa9dc14bebc49deaaefc81844c428082cd352bb6eea3244c0ee541c937
Copying blob sha256:050c734bd2868bcd3b69ab0ca033aa3bc95a00a4a1e5317e732394e1c36ef59e
Copying blob sha256:c919f00c19ddd9f4ba2a1cf1d0e26cd1c3b0babc2f85cb4dbb646f01b43dd374
Copying blob sha256:9bbc657f4fb00461e2754fbfc8e11a15ed24c9055e14902c2a18fbc0989f0e8e
Copying config sha256:6bb0a519b4dfd74b14e07a729baa207bee87bc4387b2422c841a97454bcb0f66
Writing manifest to image destination
Storing signatures
6bb0a519b4dfd74b14e07a729baa207bee87bc4387b2422c841a97454bcb0f66
/usr/bin/podman pull docker-daemon:ip-avgivelser:0329232
/usr/bin/podman pull docker-daemon:ip-avgivelser:0329232
Getting image source signatures
Copying blob sha256:c054d1261775ef8710c34de8a7504f9ec0b61f8b067e0c5379565b329486e7e1
Copying blob sha256:4fa07caa9dc14bebc49deaaefc81844c428082cd352bb6eea3244c0ee541c937
Copying blob sha256:9bbc657f4fb00461e2754fbfc8e11a15ed24c9055e14902c2a18fbc0989f0e8e
Copying blob sha256:fb15b60ae93220334096891a970266fad8dbd924c154310edefdb87e20ccc272
Copying blob sha256:050c734bd2868bcd3b69ab0ca033aa3bc95a00a4a1e5317e732394e1c36ef59e
Copying blob sha256:c919f00c19ddd9f4ba2a1cf1d0e26cd1c3b0babc2f85cb4dbb646f01b43dd374
Copying config sha256:6bb0a519b4dfd74b14e07a729baa207bee87bc4387b2422c841a97454bcb0f66
Writing manifest to image destination
Storing signatures
6bb0a519b4dfd74b14e07a729baa207bee87bc4387b2422c841a97454bcb0f66
Tags "2.0.0-140, 0329232" of "ip-avgivelser" found in Docker image storage
"docker.io/library/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/ip-avgivelser" with tags "2.0.0-140, 0329232" to "ghcr.io/domstolene" as "domstolene"
/usr/bin/podman push --quiet --digestfile docker.io-library-ip-avgivelser-2.0.0-140_digest.txt docker.io/library/ip-avgivelser:2.0.0-140 ghcr.io/domstolene/ip-avgivelser:2.0.0-140 --tls-verify=true --creds=domstolene:***
Successfully pushed "docker.io/library/ip-avgivelser:2.0.0-140" to "ghcr.io/domstolene/ip-avgivelser:2.0.0-140"
sha256:e2169db045268db45598cbded5330aacc8a0ecfc8f3a5470d08d90dd2e9b5739
/usr/bin/podman push --quiet --digestfile docker.io-library-ip-avgivelser-2.0.0-140_digest.txt docker.io/library/ip-avgivelser:0329232 ghcr.io/domstolene/ip-avgivelser:0329232 --tls-verify=true --creds=domstolene:***
Successfully pushed "docker.io/library/ip-avgivelser:0329232" to "ghcr.io/domstolene/ip-avgivelser:0329232"
sha256:e2169db045268db45598cbded5330aacc8a0ecfc8f3a5470d08d90dd2e9b5739
Removing "docker.io/library/ip-avgivelser" from the Podman image storage
/usr/bin/podman rmi docker.io/library/ip-avgivelser:2.0.0-140
Untagged: docker.io/library/ip-avgivelser:2.0.0-140
/usr/bin/podman rmi docker.io/library/ip-avgivelser:0329232
Untagged: docker.io/library/ip-avgivelser:0329232
Deleted: 6bb0a519b4dfd74b14e07a729baa207bee87bc4387b2422c841a97454bcb0f66
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment