Skip to content

Commit

Permalink
Pass docker config to preflight
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismuellner committed Aug 8, 2022
1 parent 91681a7 commit d3d0c09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/actions/preflight/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ runs:
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Login to Registry to create docker-config.json
- name: Login to Registry
uses: docker/login-action@v1
with:
registry: ${{ inputs.registry }}
Expand All @@ -43,7 +43,7 @@ runs:
env:
RHCC_APITOKEN: ${{ inputs.pyxis-api-token }}
RHCC_PROJECT_ID: ${{ inputs.redhat-project-id }}
PREFLIGHT_VERSION: "1.3.0"
PREFLIGHT_VERSION: "1.3.4"
IMAGE_URI: ${{ inputs.registry }}/${{ inputs.repository }}:${{ inputs.version }}
run: |
hack/build/ci/preflight.sh "${{ env.PREFLIGHT_VERSION }}" "${{ env.IMAGE_URI}}" "${{ inputs.report-name }}"
Expand Down
5 changes: 4 additions & 1 deletion hack/build/ci/preflight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ check_image() {
}

submit_report() {
./"${PREFLIGHT_EXECUTABLE}" check container "${IMAGE_TAG}" --submit --pyxis-api-token="${RHCC_APITOKEN}" --certification-project-id="${RHCC_PROJECT_ID}"
./"${PREFLIGHT_EXECUTABLE}" check container "${IMAGE_TAG}" \
--pyxis-api-token="${RHCC_APITOKEN}" --certification-project-id="${RHCC_PROJECT_ID}" \
--docker-config="${HOME}/.docker/config.json" \
--submit
}

download_preflight
Expand Down

0 comments on commit d3d0c09

Please sign in to comment.