Skip to content

Commit

Permalink
chore: set env
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <[email protected]>
  • Loading branch information
Dominik Rosiek committed May 29, 2024
1 parent bdd7ff6 commit 105a36c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
jobs:
build-all:
runs-on: ubuntu-22.04
env:
CHECK: "false"
steps:
- uses: actions/checkout@v4
- name: Build all
Expand Down
4 changes: 2 additions & 2 deletions scripts/build-push-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ if [[ -z "${RED_HAT_API_KEY}" && "${CHECK}" == "true" ]]; then
exit -1
fi

## Perform image check
function check(){
echo ${NAME} ${IMAGE_NAME} ${UPSTREAM_VERSION}
make -C ${NAME} check IMAGE_NAME=${IMAGE_NAME} UPSTREAM_VERSION="${UPSTREAM_VERSION}"

## prepare image to submit
## Fetch container project id based on directory(image) name
CONTAINER_PROJECT_ID="$(curl -sH "X-API-KEY: ${RED_HAT_API_KEY}" "https://catalog.redhat.com/api/containers/v1/product-listings/id/${OPERATOR_PROJECT_ID}/projects/certification" | jq ".data[] | select(.name == \"${NAME}\")._id" --raw-output)"
## Fetch key for image registry
CONTAINER_REGISTRY_KEY="$(curl -sH "X-API-KEY: ${RED_HAT_API_KEY}" "https://catalog.redhat.com/api/containers/v1/projects/certification/id/${CONTAINER_PROJECT_ID}/secrets" | jq ".registry_credentials.password" --raw-output)"
## Prepate image name
## Prepare image name
SUMOLOGIC_IMAGE=${IMAGE_NAME}
}

Expand Down

0 comments on commit 105a36c

Please sign in to comment.