From 46c8293bb3cf4e5f8e4a41f62ce18c0e8b908d00 Mon Sep 17 00:00:00 2001 From: Jordan Jacobelli Date: Thu, 11 Jul 2024 17:06:03 +0200 Subject: [PATCH] Publish message to image-puller SNS topic for qemu images (#70) --- .github/workflows/build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0ce9b3f..2824e01 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -40,6 +40,7 @@ jobs: NV_TIMESTAMP: ${{ needs.compute-constants.outputs.TIMESTAMP }} steps: - name: Configure AWS Credentials + id: aws-creds uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ vars.VM_IMAGES_AWS_ROLE_ARN }} @@ -119,3 +120,8 @@ jobs: push: true pull: true tags: ${{ steps.ecr-login.outputs.registry }}/nv-gha-runners/kubevirt-images:${{ env.NV_IMAGE_NAME }} + - name: Publish message to image-puller SNS topic + if: matrix.ENV == 'qemu' && inputs.upload_artifacts + run: | + aws sns publish --topic-arn "arn:aws:sns:${{ vars.AWS_REGION }}:${{ steps.aws-creds.outputs.aws-account-id }}:arc-nvks-image-puller" \ + --message ${{ steps.ecr-login.outputs.registry }}/nv-gha-runners/kubevirt-images:${{ env.NV_IMAGE_NAME }}