Skip to content

Commit

Permalink
chore: update scan-image job
Browse files Browse the repository at this point in the history
  • Loading branch information
deowk committed Apr 25, 2024
1 parent 0e8ebeb commit df613ad
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,11 @@ jobs:
REGISTRY: ${{ vars.REGISTRY }}
REPOSITORY: ${{ vars.REPOSITORY }}
NODE_TYPE: ${{ matrix.node }}
scan-image:
needs: [ matrix, build ]
strategy:
matrix:
node: ${{ fromJson(needs.matrix.outputs.node_types) }}
uses: aiblockofficial/workflows/.github/workflows/scan-image.yml@main
secrets: inherit
with:
IMAGE: ${{ vars.REGISTRY }}/${{ vars.ORGANISATION_NAME }}/node-${{ matrix.node }}:${{ github.sha }}

merge:
needs: [matrix, build, scan-image]
needs: [matrix, build]
outputs:
json: ${{ steps.matrix.outputs.json }}
strategy:
matrix:
node: ${{ fromJson(needs.matrix.outputs.node_types) }}
Expand Down Expand Up @@ -82,3 +75,13 @@ jobs:
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
scan-image:
needs: [ matrix, build, merge]
strategy:
matrix:
node: ${{ fromJson(needs.matrix.outputs.node_types) }}
uses: aiblockofficial/workflows/.github/workflows/scan-image.yml@main
secrets: inherit
with:
IMAGE: ${{ vars.REGISTRY }}/${{ vars.ORGANISATION_NAME }}/node-${{ matrix.node }}:${{ fromJson(needs.merge.outputs.json).tags[0] }}

0 comments on commit df613ad

Please sign in to comment.