Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add redhat registry login #650

Merged
merged 1 commit into from
May 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/bundle-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@ jobs:
username: ${{ secrets.REDHAT_CERTIFICATED_CONTAINER_REGISTRY_USER }}
password: ${{ secrets.REDHAT_CERTIFICATED_CONTAINER_REGISTRY_PASSWORD }}

- name: Login to RedHat Connect registry
uses: docker/login-action@v1
with:
registry: https://registry.connect.redhat.com
username: ${{ secrets.REDHAT_CONNECT_REGISTRY_USER }}
password: ${{ secrets.REDHAT_CONNECT_REGISTRY_PASSWORD }}

- name: Build Openshift certificated container And Publish to Quay
env:
VERSION: ${{ inputs.tag }}
Expand All @@ -218,7 +225,8 @@ jobs:
export TARGET_DIR=$(pwd)/artifacts
export AUTHFILE=$(pwd)/authfile.json
mkdir $TARGET_DIR
echo $REDHAT_CERTIFICATED_CONTAINER_AUTHFILE > AUTHFILE
echo $REDHAT_CERTIFICATED_CONTAINER_AUTHFILE > $AUTHFILE
cat $AUTHFILE
docker run -i --rm --security-opt=label=disable --env PFLT_LOGLEVEL=trace --env PFLT_ARTIFACTS=/artifacts --env PFLT_LOGFILE=/artifacts/preflight.log --env PFLT_CERTIFICATION_PROJECT_ID=$CONTAINER_IMAGE_CERTIFICATION_PROJECT_ID --env PFLT_PYXIS_API_TOKEN=$PFLT_PYXIS_API_TOKEN --env PFLT_DOCKERCONFIG=/temp-authfile.json -v $TARGET_DIR:/artifacts -v $AUTHFILE:/temp-authfile.json:ro quay.io/opdev/preflight:stable check container quay.io/redhat-isv-containers/$CONTAINER_IMAGE_CERTIFICATION_PROJECT_ID:$VERSION --submit
sleep 60s

Expand Down