workers: Backwards compatible api.openshift.com spec compliance
The main changes are: - Kind, Href, Id fields for every object returned - Attach operationIds to each request, return it for errors - Errors are predefined and queryable
This commit is contained in:
parent
5e206322a2
commit
2f328b0e97
14 changed files with 816 additions and 209 deletions
|
|
@ -1,21 +1,26 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
|
||||
echo "Query host"
|
||||
|
||||
COMMIT=$(git rev-parse HEAD)
|
||||
|
||||
|
||||
echo "Prepare host system"
|
||||
|
||||
sudo dnf -y install podman
|
||||
|
||||
|
||||
echo "Build container"
|
||||
|
||||
IMAGE_NAME="quay.io/osbuild/osbuild-composer-ubi-pr"
|
||||
IMAGE_TAG="${CI_COMMIT_SHA:-$(git rev-parse HEAD)}"
|
||||
|
||||
podman \
|
||||
build \
|
||||
"--file=distribution/Dockerfile-ubi" \
|
||||
"--tag=osbuild-composer:${COMMIT}" \
|
||||
--file="distribution/Dockerfile-ubi" \
|
||||
--tag="${IMAGE_NAME}:${IMAGE_TAG}" \
|
||||
--label="quay.expires-after=1w" \
|
||||
.
|
||||
|
||||
# Push to reuse later in the pipeline (see regression tests)
|
||||
BRANCH_NAME="${BRANCH_NAME:-${CI_COMMIT_BRANCH}}"
|
||||
if [[ "$BRANCH_NAME" =~ ^PR-[0-9]+$ ]]; then
|
||||
podman push \
|
||||
--creds "${QUAY_USERNAME}":"${QUAY_PASSWORD}" \
|
||||
"${IMAGE_NAME}:${IMAGE_TAG}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue