Skip to content

Commit

Permalink
Move preflight check after manifest creation (#1368)
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Muellner <christoph.muellner@dynatrace.com>
  • Loading branch information
luhi-DT and chrismuellner authored Nov 29, 2022
1 parent 5a9127a commit 2b9a13e
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/publish-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,6 @@ jobs:
version: ${{ needs.prepare.outputs.version }}
registry: ${{ matrix.url }}
repository: ${{ secrets[matrix.repository] }}
- name: Run preflight
if: matrix.registry == 'rhcc'
uses: ./.github/actions/preflight
with:
version: ${{ needs.prepare.outputs.version }}
registry: ${{ matrix.url }}
repository: ${{ secrets[matrix.repository] }}
report-name: "preflight.json"
redhat-project-id: ${{ secrets.REDHAT_PROJECT_ID }}
pyxis-api-token: ${{ secrets.PYXIS_API_TOKEN }}
- name: Sign image for ${{matrix.registry}}
if: matrix.registry != 'rhcc'
uses: ./.github/actions/sign-image
Expand Down Expand Up @@ -141,7 +131,18 @@ jobs:
registry: ${{ matrix.url }}
repository: ${{ secrets[matrix.repository] }}
combined: true
- name: Run preflight
if: matrix.registry == 'rhcc'
uses: ./.github/actions/preflight
with:
version: ${{ needs.prepare.outputs.version }}
registry: ${{ matrix.url }}
repository: ${{ secrets[matrix.repository] }}
report-name: "preflight.json"
redhat-project-id: ${{ secrets.REDHAT_PROJECT_ID }}
pyxis-api-token: ${{ secrets.PYXIS_API_TOKEN }}
- name: Sign manifests for ${{matrix.registry}}
if: matrix.registry != 'rhcc'
uses: ./.github/actions/sign-image
with:
image: ${{ matrix.url }}/${{ secrets[matrix.repository] }}:${{ needs.prepare.outputs.version }}
Expand Down

0 comments on commit 2b9a13e

Please sign in to comment.